samp-precise-timers v3.0.0
github-actions
released this
21 Feb 10:52
·
34 commits
to refs/heads/master
since this release
This version keeps track of the next timer to be triggered, avoiding iterating over all of them on each tick. Also respects Rust's aliasing rules better.
Breaking changes
- Non-repeating timers are removed immediately when triggered, and when their callback is called, the timer ID is already invalid. You can't use
ResetPreciseTimer
,DeletePreciseTimer
with it. If you kept the ID returned fromSetPreciseTimer("SomeCallback",1000,false)
, make sure to invalidate it as soon as you receive the callback.