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

Reschedule game timer each tick instead of repeating it #198

Open
rexim opened this issue Jan 6, 2016 · 1 comment
Open

Reschedule game timer each tick instead of repeating it #198

rexim opened this issue Jan 6, 2016 · 1 comment

Comments

@rexim
Copy link
Member

rexim commented Jan 6, 2016

http://www.gnu.org/software/emacs/manual/html_node/elisp/Timers.html

A repeating timer nominally ought to run every repeat seconds, but remember that any invocation of a timer can be late. Lateness of one repetition has no effect on the scheduled time of the next repetition. For instance, if Emacs is busy computing for long enough to cover three scheduled repetitions of the timer, and then starts to wait, it will immediately call the timer function three times in immediate succession (presuming no other timers trigger before or between them). If you want a timer to run again no less than n seconds after the last invocation, don’t use the repeat argument. Instead, the timer function should explicitly reschedule the timer.

We should check if this approach will give us any benefits.

@Minoru
Copy link
Member

Minoru commented Jan 6, 2016 via email

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

No branches or pull requests

2 participants