]> git.tdb.fi Git - libs/game.git/commit
Ignore catch-up ticks in Renderer
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Apr 2025 11:20:46 +0000 (14:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Apr 2025 11:20:46 +0000 (14:20 +0300)
commit71ec63f3dacf698ab07c95135285b61b731d4e2c
tree9172ff20b1660b47db4b2714101b27390e8b17fc
parentc098883373740984af30a8b3b51761cdab66381d
Ignore catch-up ticks in Renderer

If falling behind was caused by rendering (via vsync or just complex
frames) trying to render on every tick would just make the situation
worse.

Also render on partial ticks in case the desired output framerate is
higher than the reciprocal stepsize.
source/gameview/renderer.cpp
source/gameview/renderer.h