aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-02-18 19:10:14 +0100
committerFelix Morgner <felix.morgner@gmail.com>2026-02-18 19:10:14 +0100
commit5ad41b0af4485f878228dfdebb9ad068898b5a2c (patch)
treee86e2c92344fd8296b692b5da8851164db6bbc84 /src
parentee0f1c0268d12f2461de5582788ae6640be5b436 (diff)
downloadsnake.s-5ad41b0af4485f878228dfdebb9ad068898b5a2c.tar.xz
snake.s-5ad41b0af4485f878228dfdebb9ad068898b5a2c.zip
feat: enable vsync
Diffstat (limited to 'src')
-rw-r--r--src/main.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.S b/src/main.S
index 5e2ccf0..6bad719 100644
--- a/src/main.S
+++ b/src/main.S
@@ -77,7 +77,7 @@
// create a renderer
load_local window_handle, %rdi
mov $-1, %rsi
- mov $SDL_RENDERER_ACCELERATED, %rdx
+ mov $(SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC), %rdx
call SDL_CreateRenderer@PLT
store_local %rax, renderer_handle