mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 11:55:43 +00:00
VIDEO: Added priority boost to thread performing SDL processing and updates
Reworked all priority adjustment code to leverage a new sim_os_set_thread_priority API which is coded to use pthreads or OS priority adjustment APIs as necessary.
This commit is contained in:
@@ -419,6 +419,8 @@ SDL_Init (SDL_INIT_VIDEO);
|
||||
vid_main_thread_handle = SDL_CreateThread (main_thread , "simh-main", NULL);
|
||||
#endif
|
||||
|
||||
sim_os_set_thread_priority (PRIORITY_ABOVE_NORMAL);
|
||||
|
||||
vid_beep_setup (400, 660);
|
||||
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user