-
Notifications
You must be signed in to change notification settings - Fork 49
Description
Hi!
I am at last using my own built GNU/Linux version of OpenFodder. Its built against latest SDL 2.0.10, etc and works fine.
However, I have observed that the helicopter intro sequence is not smooth as in Amiga and RiscOS (RiscOS version runs natively on the Pi, BTW!).
The game originally synced video during this sequence to vsync, so it was ~50FPS, while OpenFodder seems to be doing about half-the-framerate, which in a modern display would be ~30FPS.
I am sure the solution would be to allow OpenFodder to render this sequence "as fast as possible", so SDL2 blocks on the rendering function: SDL_RenderPresent() is synchronous so it blocks if VSYNC is ON until VSYNC arrives.
DO NOT rely on SDL_Delay() for video speed control, because it will generate micro-stuttering in this smooth scrolling sequence: let the game sync to vsync, so video will be smooth no matter what exact physical display rate is.