Skip to content

Commit 5e2c204

Browse files
committed
fixup! Add experimental "unpaced" and "serial" paths
1 parent 6d0586b commit 5e2c204

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/platform/windows/display_base.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,12 @@ namespace platf::dxgi {
175175
return status;
176176
}
177177

178-
if (config::video.unpaced && mouse_pointer_visible) {
179-
// Wait for vblank and flush Desktop Duplication API mouse pointer updates.
180-
DwmFlush();
178+
if (config::video.unpaced) {
179+
dup.release_frame();
180+
if (mouse_pointer_visible && output) {
181+
// Limit and pace mouse pointer updates.
182+
output->WaitForVBlank();
183+
}
181184
}
182185
}
183186

0 commit comments

Comments
 (0)