Files
oak-gpui/crates/gpui/src
张小白 a1e5f6bb7c windows: Use DwmFlush() to trigger vsync event (#11731)
Currently , on Windows 10, we used a `Timer` to trigger the vsync event,
but the `Timer`'s time precision is only about 15ms, which means a
maximum of 60FPS. This PR introduces a new function to allow for higher
frame rates on Windows 10.

And after reading the codes, I found that zed triggers a draw after
handling mouse or keyboard events, so we don't need to call draw again
when we handle `WM_*` messages. Therefore, I removed the
`invalidate_client_area` function.

Release Notes:

- N/A
2024-05-15 10:45:17 -07:00
..
2024-05-10 15:50:20 -06:00
2024-05-10 15:50:20 -06:00
2024-03-11 10:45:57 +01:00
2024-03-06 18:15:06 -08:00
2024-04-29 16:37:37 -04:00
2024-01-21 14:26:45 -08:00
2024-01-21 14:26:45 -08:00