diff options
| author | Ray <[email protected]> | 2023-12-28 23:16:57 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-12-28 23:16:57 +0100 |
| commit | dde738a2fd3f2c657af1693b0f314df361b4c04f (patch) | |
| tree | d3b320a38682fd108f9b01b55323ddbf5b72b428 /src/platforms/rcore_desktop_sdl.c | |
| parent | 7ea6adb29eaf39e18c6faa4d7d6d9bd8a9d60910 (diff) | |
| parent | fd5e1e6afb69ef190e74ac780ec3718d36e2d7d1 (diff) | |
| download | raylib-dde738a2fd3f2c657af1693b0f314df361b4c04f.tar.gz raylib-dde738a2fd3f2c657af1693b0f314df361b4c04f.zip | |
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src/platforms/rcore_desktop_sdl.c')
| -rw-r--r-- | src/platforms/rcore_desktop_sdl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 1e55cbac..28dd9d1d 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -1112,7 +1112,7 @@ void PollInputEvents(void) case SDL_TEXTINPUT: { // NOTE: event.text.text data comes an UTF-8 text sequence but we register codepoints (int) - + int codepointSize = 0; // Check if there is space available in the key queue @@ -1426,6 +1426,10 @@ int InitPlatform(void) //---------------------------------------------------------------------------- // NOTE: No need to call InitTimer(), let SDL manage it internally CORE.Time.previous = GetTime(); // Get time as double + + #if defined(_WIN32) && defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP) + SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "1"); // SDL equivalent of timeBeginPeriod() and timeEndPeriod() + #endif //---------------------------------------------------------------------------- // Initialize storage system |
