dt-rush / sameriver

game engine written in go
Other
1 stars 1 forks source link

Use time accumulators in runtime limit sharing #71

Closed dt-rush closed 1 year ago

dt-rush commented 1 year ago

If a logic is taking 400ms then it should only run every 400ms at most. Thus we guard evaluation of a logic with Tick of it's last runtime, and say it completes in 100ms, now it's eligible to run 100ms from now.

dt-rush commented 1 year ago

done