# sdl12-compat: quirks: Force Loki's Unreal Tournament build to sync to vblank.

**URL:** <https://discourse.libsdl.org/t/sdl12-compat-quirks-force-lokis-unreal-tournament-build-to-sync-to-vblank/57571>\
**Category:** SDL Commits\
**Created:** [February 4, 2025, 4:17am UTC](https://discourse.libsdl.org/t/sdl12-compat-quirks-force-lokis-unreal-tournament-build-to-sync-to-vblank/57571 "2025-02-04T04:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [February 4, 2025, 4:17am UTC](https://discourse.libsdl.org/t/sdl12-compat-quirks-force-lokis-unreal-tournament-build-to-sync-to-vblank/57571/1 "2025-02-04T04:17:19Z")

</div>

> <https://github.com/libsdl-org/sdl12-compat/commit/082a98600bbe11b68581edc2bf2cdd3dfa7cfc82>
>
> Reference https://github.com/libsdl-org/sdl2-compat/issues/283

```diff
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. */
 

```
