DCurrent / openbor

OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!
http://www.chronocrash.com
BSD 3-Clause "New" or "Revised" License
894 stars 119 forks source link

Delay before update() to reduce input latency when vsync is enabled #309

Closed Plombo closed 3 months ago

Plombo commented 3 months ago

Reduces input latency when vsynced by not reading inputs until 4 ms before frame submission.

Also drops the dependency on SDL_gfx, replaces the SDL_gfx framerate limiter with a newly implemented simple limiter, and merges the "VSync" and "FPS limit" video options together. The possible settings for the newly combined "FPS limit" option are VSync (default), 200, 500, and disabled.