Skip to content

Commit 8f5519d

Browse files
committed
fixed time spent setting vsync often
1 parent ca20de2 commit 8f5519d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/sdl/sdl/Window.hx

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ class Window {
237237
}
238238

239239
function set_vsync(v) {
240+
if( vsync == v ) return v;
240241
setVsync(v);
241242
return vsync = v;
242243
}

0 commit comments

Comments
 (0)