rubatopy / rubato

A lightweight, developer-first game engine built for Python
https://rubato.app
GNU General Public License v3.0
23 stars 1 forks source link

target fps boo boo #429

Closed mrElnekave closed 1 year ago

mrElnekave commented 1 year ago

BUG:

rb.init(res=(500, 500), maximize=True, target_fps=60)

not actually capping.

tsedan commented 1 year ago

I think this is due to floating point error since our delta_time and normal_deltas are really tiny The solution is to untranslate some of our backend stuff back to milliseconds