Indev450 / SRB2Kart-Saturn

GNU General Public License v2.0
26 stars 9 forks source link

Use Windows own high resolution timer for timing things instead of the SDL timer #106

Closed alufolie91 closed 8 months ago

alufolie91 commented 9 months ago

While the SDL timer is fine enough, its just simply not as accurate as things could be This uses windows own high resolution timer function (apparently (<1us) precision) in Place unix uses its own for a few parts already so why should windows not use its own version This potentially improves Frame Pacing with Vsync and or Capped Framerate, making things less stuttery and or jittery aswell as making everything else more accurate which used those timing functions (ex Perfstats) This should also lower the games CPU usage when it sleeps (ex when framerate is capped)