From 082a98600bbe11b68581edc2bf2cdd3dfa7cfc82 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 3 Feb 2025 23:15:44 -0500
Subject: [PATCH] quirks: Force Loki's Unreal Tournament build to sync to
vblank.
Reference https://github.com/libsdl-org/sdl2-compat/issues/283
---
src/SDL12_compat.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index d72a9c6d5..6b87d59e6 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -1318,7 +1318,10 @@ static QuirkEntryType quirks[] = {
{"grafx2", "SDL12COMPAT_ALLOW_SYSWM", "0"},
/* The 32-bit Steam build only of Multiwinia Quits but doesn't re-Init */
- {"multiwinia.bin.x86", "SDL12COMPAT_NO_QUIT_VIDEO", "1"}
+ {"multiwinia.bin.x86", "SDL12COMPAT_NO_QUIT_VIDEO", "1"},
+
+ /* Loki Unreal Tournament '99 runs at hyperspeed if the framerate is too high. Force it to vsync. You should use the newer OldUnreal binaries with SDL2 instead! */
+ {"ut-bin", "SDL12COMPAT_SYNC_TO_VBLANK", "1"}
#else
/* TODO: Add any quirks needed for this system. */