mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
VIDEO: Always raise priority of thread consuming SDL Events
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user