18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 06:35:21 +01:00
Files
maszyna/application
jerrrrycho cdaa40ac3b perf(application): the hidden window of the test mode polled a few times a second
The main loop called glfwPollEvents() every frame. With no messages waiting, PeekMessage called over and
over yields the thread (ZwYieldExecution in the profile), so in a short frame it was a large part of it: 8.7%
of the main thread on linia_107_objazdy, 0.3% on Tomaszewo. The test mode's window is hidden and takes
no input, so there its messages are looked at every 50 ms. Outside the test mode they are polled every
frame, as before.
2026-12-02 07:04:33 +01:00
..