test-window: poll events instead of sleeping

This commit is contained in:
Bananymous 2025-05-13 10:15:55 +03:00
parent e7f0cd0c4b
commit b90cfa8e5c
1 changed files with 1 additions and 5 deletions

View File

@ -55,11 +55,7 @@ int main()
while (running)
{
window->wait_events();
window->poll_events();
timespec duration;
duration.tv_sec = 0;
duration.tv_nsec = 16'666'666;
nanosleep(&duration, nullptr);
}
}