Re:Minimal Cross-Platform Graphics
by suby on Tuesday January 24, 2023 @05:44AM
(#34501998)
Why not just use VSync?
[ Parent
| on HN ]
If I am not too much mistaken, because on some hardware (mobile), there is no vsync feedback.
vsync feedback support has to be queried (look at vulkan API/wayland API). Usually it is called "presentation" something.
Re:Minimal Cross-Platform Graphics
by abainbridge on Tuesday January 24, 2023 @08:34AM
(#34503329)
How would I do that? I think there is any such function in the Win32 API.
Yes, I think you basically have to use a DirectX swap chain to get vsync presentation.