haekb / nolf2-modernizer

NOLF 2 Modernizer aims to unlock resolution support, restore multi-player support, and fix a few bugs here and there.
https://haekb.itch.io/nolf2-modernizer
30 stars 4 forks source link

Bugs/49 movement speed affected by fps #50

Closed haekb closed 4 years ago

haekb commented 4 years ago

Okay cooool. This resolves #49 which is my way too long quest to fix movement speed.

I found that to get a consistent movement speed I need to simulate movement on a 60fps delta time, and then manually adjust it with the real delta time.

That unfortunately broke jumping/falling. So I simulate gravity pretty much on par with how it originally works. (I'm glad it's so simple!) However like the original, jumping height is slightly framerate dependent. Not enough to make a difference though.

haekb commented 4 years ago

Closing this for now. I have no idea at this moment on how to fix swimming and ladder climbing. I might have to redo this work from scratch later on.