[Ohrrpgce] SVN: teeemcee/11892 Fix 60fps games on Macs running at more like 30fps by rewriting frameski

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Wed Jul 15 03:01:09 PDT 2020


teeemcee
2020-07-15 03:01:09 -0700 (Wed, 15 Jul 2020)
729
Fix 60fps games on Macs running at more like 30fps by rewriting frameskipping

New frameskipping is far simpler. I'm glad to delete time_draw_calls_from_finish()!

The old frameskipping was deeply flawed, it would skip a frame if it was
anything less than 1000/60 ms since the last setvispage call, so random noise
would drop half the frames!

Also, requested_framerate was calculated wrong, so shift-tab didn't work
properly either... and the whole reason for this framewkipping scheme was to
make shift-tab work on Macs! ugh.

I also decrease max_display_fps to 60 on all OSes, from 90. The 90 value was
needed to make shift-tab work well on OSes other than Mac without skipping too
much. As a bonus, Shift-Tab now runs faster!
---
U   wip/allmodex.bas
U   wip/whatsnew.txt


More information about the Ohrrpgce mailing list