VIDEO: Always raise priority of thread consuming SDL Events

This commit is contained in:
Mark Pizzolato 2020-06-13 05:05:11 -07:00
parent be117a33bd
commit 337062fcf0

View file

@ -418,8 +418,6 @@ if (vid_main_thread_handle == NULL) {
exit (1);
}
sim_os_set_thread_priority (PRIORITY_ABOVE_NORMAL);
vid_beep_setup (400, 660);
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_os_set_thread_priority (PRIORITY_ABOVE_NORMAL);
memset (&vid_key_state, 0, sizeof(vid_key_state));
SDL_CreateWindowAndRenderer (vid_width, vid_height, SDL_WINDOW_SHOWN, &vid_window, &vid_renderer);