Mercurial > repos > blastem
comparison render_sdl.c @ 1482:2d203bf73dbd nuklear_ui
Avoid burning a huge amount of CPU in the menu when emulation is not running and vsync is disabled
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 25 Nov 2017 14:42:38 -0800 |
parents | 0646ae0987c3 |
children | 001120e91fed |
comparison
equal
deleted
inserted
replaced
1481:77a401044935 | 1482:2d203bf73dbd |
---|---|
1218 void render_infobox(char *title, char *message) | 1218 void render_infobox(char *title, char *message) |
1219 { | 1219 { |
1220 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, title, message, NULL); | 1220 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, title, message, NULL); |
1221 } | 1221 } |
1222 | 1222 |
1223 uint32_t render_elapsed_ms(void) | |
1224 { | |
1225 return SDL_GetTicks(); | |
1226 } | |
1227 | |
1228 void render_sleep_ms(uint32_t delay) | |
1229 { | |
1230 return SDL_Delay(delay); | |
1231 } | |
1232 |