curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
13 stars 0 forks source link

Game slows down on low FPS #16

Closed curioustorvald closed 5 years ago

curioustorvald commented 5 years ago

The idea of async update and render was to resolve the issue, but now it seems it simply doesn't matter, and the phys engine uses fixed constant for time calculation (which is silly, I know). May it's time to work on that...

One way to tell is, on low FPS, legs move quickly (sprite anim) but the actor doesn't actually move that fast.

curioustorvald commented 5 years ago

You slide more on low fps: on Clear Ice, +3-4 blocks on FPS=70, +11-12 blocks on FPS=20

curioustorvald commented 5 years ago

The branch "delta_t_aware_phys_2" should resolve this issue. (a quick and dirty suboptimal solution of "just update several more", which works unlike my prev attempt)