mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Revert "vsync is not broken anymore thanks to both Eidolon and jart's efforts"
This reverts commit 59044e7389.
This commit is contained in:
parent
ea3818d285
commit
3149d7738f
1 changed files with 7 additions and 0 deletions
|
|
@ -1583,8 +1583,15 @@ static SDL_bool Impl_CreateContext(void)
|
||||||
int flags = 0; // Use this to set SDL_RENDERER_* flags now
|
int flags = 0; // Use this to set SDL_RENDERER_* flags now
|
||||||
if (usesdl2soft)
|
if (usesdl2soft)
|
||||||
flags |= SDL_RENDERER_SOFTWARE;
|
flags |= SDL_RENDERER_SOFTWARE;
|
||||||
|
#if 0
|
||||||
|
// This shit is BROKEN.
|
||||||
|
// - The version of SDL we're using cannot toggle VSync at runtime. We'll need a new SDL version implemented to have this work properly.
|
||||||
|
// - cv_vidwait is initialized before config is loaded, so it's forced to default value at runtime, and forced off when switching. The config loading code would need restructured.
|
||||||
|
// - With both this & frame interpolation on, I_FinishUpdate takes x10 longer. At this point, it is simpler to use a standard FPS cap.
|
||||||
|
// So you can probably guess why I'm kinda over this, I'm just disabling it.
|
||||||
else if (cv_vidwait.value)
|
else if (cv_vidwait.value)
|
||||||
flags |= SDL_RENDERER_PRESENTVSYNC;
|
flags |= SDL_RENDERER_PRESENTVSYNC;
|
||||||
|
#endif
|
||||||
|
|
||||||
// 3 August 2022
|
// 3 August 2022
|
||||||
// Possibly a Windows 11 issue; the default
|
// Possibly a Windows 11 issue; the default
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue