Files
oak-gpui/crates
张小白 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-05-10 15:50:20 -06:00
2024-04-23 13:31:21 -04:00
2024-05-10 15:50:20 -06:00
2024-03-28 18:32:11 +01:00
2024-04-11 15:36:35 -06:00
2024-05-10 15:50:20 -06:00
2024-04-30 23:31:59 -06:00
2024-05-10 15:50:20 -06:00
2024-05-10 15:50:20 -06:00
2024-05-09 21:08:49 -06:00
2024-03-11 10:45:57 +01:00
2024-03-26 16:10:09 -07:00
2024-04-26 13:25:25 -06:00
2024-05-09 21:08:49 -06:00
2024-05-06 12:58:11 +02:00
2024-05-13 17:58:08 -04:00
2024-05-10 15:50:20 -06:00
2024-05-05 15:02:50 +02:00
2024-04-15 14:21:52 +02:00
2024-05-14 18:25:54 -07:00
2024-05-03 12:50:42 -07:00
2024-05-14 18:25:54 -07:00
2024-05-15 11:47:42 -04:00