openrw
openrw copied to clipboard
Framerate capped at 60fps
Running the game above 60fps results in doubled frames. GPU usage looks like it's rendering more frames (38% usage at 60fps, and 82% usage at 144fps), and Rivatuner reports higher than 60fps, but there's only 60 unique frames a second. Here's a video recorded at 120fps (max framerate OBS can record at), and if you step frame by frame you can see every other frame is doubled.
Screwing with kMaxPhysicsSubSteps and GAME_TIMESTEP can result in >60fps (Video), so I'm guessing the game world is only running at 60fps, and either needs to be increased when running at higher framerates or interpolated.
I guess there should be option for it in config file.
And having these options modifiable at runtime,using a console or config menu, would be useful as well.
And having these options modifiable at runtime,using a console or config menu, would be useful as well.
I'm currently working on Config, and considering how many options are now just magic numbers in the code, the console for quick changes to configuration at runtime sounds like a good idea.