Closed AquaEBM closed 1 year ago
Closing this issue as it seems egui-baseview
isn't the only integration getting this problem, so it doesn't seem come from egui-baseview
. Could always reopen it if the issue persists even after (this issue in the main egui repo) gets fixed.
On Windows, the window view gets repainted at thousands of frames per second, resulting in huge CPU usage, in spite of having set
WindowOpenOptions.gl_config.vsync
totrue
. I think the problem might be in how renders are scheduled inWindowHandler::on_frame
but I haven't investigated enough yet. For now, one can mitigate this by callingthread::sleep
in theupdate
closure of a window but the precision ofthread::sleep
on windows is terrible.