VIDEO: Always raise priority of thread consuming SDL Events
This commit is contained in:
parent
be117a33bd
commit
337062fcf0
1 changed files with 2 additions and 2 deletions
|
@ -418,8 +418,6 @@ if (vid_main_thread_handle == NULL) {
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sim_os_set_thread_priority (PRIORITY_ABOVE_NORMAL);
|
|
||||||
|
|
||||||
vid_beep_setup (400, 660);
|
vid_beep_setup (400, 660);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -1597,6 +1595,8 @@ if (!initialized) {
|
||||||
|
|
||||||
sim_debug (SIM_VID_DBG_VIDEO|SIM_VID_DBG_KEY|SIM_VID_DBG_MOUSE, vid_dev, "vid_thread() - Starting\n");
|
sim_debug (SIM_VID_DBG_VIDEO|SIM_VID_DBG_KEY|SIM_VID_DBG_MOUSE, vid_dev, "vid_thread() - Starting\n");
|
||||||
|
|
||||||
|
sim_os_set_thread_priority (PRIORITY_ABOVE_NORMAL);
|
||||||
|
|
||||||
memset (&vid_key_state, 0, sizeof(vid_key_state));
|
memset (&vid_key_state, 0, sizeof(vid_key_state));
|
||||||
|
|
||||||
SDL_CreateWindowAndRenderer (vid_width, vid_height, SDL_WINDOW_SHOWN, &vid_window, &vid_renderer);
|
SDL_CreateWindowAndRenderer (vid_width, vid_height, SDL_WINDOW_SHOWN, &vid_window, &vid_renderer);
|
||||||
|
|
Loading…
Add table
Reference in a new issue