openrw icon indicating copy to clipboard operation
openrw copied to clipboard

Framerate capped at 60fps

Open SonofUgly opened this issue 6 years ago • 3 comments

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.

SonofUgly avatar Jan 17 '19 02:01 SonofUgly

I guess there should be option for it in config file.

ghost avatar Jan 17 '19 17:01 ghost

And having these options modifiable at runtime,using a console or config menu, would be useful as well.

madebr avatar Jan 17 '19 18:01 madebr

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.

lemppu avatar Nov 20 '21 07:11 lemppu