mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 01:17:40 +00:00
Fixed spinning at a very high framerate
This commit is contained in:
parent
47f2373dc1
commit
6bcf2c1521
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ loop(void *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_Delay(16);
|
||||||
SDL_RenderPresent(screen);
|
SDL_RenderPresent(screen);
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue