Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add sys_set_ticks or sys_reset_ticks #15

Open
plattysoft opened this issue Aug 8, 2021 · 2 comments
Open

Feature request: Add sys_set_ticks or sys_reset_ticks #15

plattysoft opened this issue Aug 8, 2021 · 2 comments

Comments

@plattysoft
Copy link

While we can read the clock and wait for it, the TIME value is just an integer and eventually overflows, which leads to undesirable situations once the program has run for long enough.
It is much safer to reset the clock occasionally, for that we can have a sys_set_ticks or simply a sys_reset_ticks, which will be the equivalent to sys_set_ticks(0).

@retrodeluxe
Copy link
Owner

@plattysoft feel free to make pull requests to fix issues or add stuff you need.

@plattysoft
Copy link
Author

I don't know enough assembly or the internals of the engine to be able to write that part, otherwise I would have gone for it straight away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants