test-window: poll events instead of sleeping
This commit is contained in:
parent
e7f0cd0c4b
commit
b90cfa8e5c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue