PeekMessage WM_TIMER in message pump to increase timer reliabilityw
parent
ebb194eda6
commit
37e4e51764
|
@ -1699,6 +1699,10 @@ void RunGui() {
|
|||
while(GetMessage(&msg, NULL, 0, 0)) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
|
||||
// look for WM_TIMER to boost their priority
|
||||
MSG timer_msg;
|
||||
PeekMessage(&timer_msg, nullptr, WM_TIMER, WM_TIMER, PM_NOREMOVE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue