diff options
| author | Ray <[email protected]> | 2021-03-12 17:18:48 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-12 17:18:48 +0100 |
| commit | 08723659386e463219d60447ef83ebdc5cf3f2f9 (patch) | |
| tree | 81c88aa4db04b8625a97a357749568a754c32fc3 /src/config.h | |
| parent | 755ed388b2c9f1355d765e83c6dce5372e8e16d6 (diff) | |
| download | raylib-08723659386e463219d60447ef83ebdc5cf3f2f9.tar.gz raylib-08723659386e463219d60447ef83ebdc5cf3f2f9.zip | |
Add config flag: SUPPORT_WINMM_HIGHRES_TIMER #1641
Useful to avoid WinMM requirement and useful to avoid possible performance issues.
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index d0c8cfdd..aecff8e5 100644 --- a/src/config.h +++ b/src/config.h @@ -40,6 +40,9 @@ #define SUPPORT_SSH_KEYBOARD_RPI 1 // Draw a mouse pointer on screen #define SUPPORT_MOUSE_CURSOR_NATIVE 1 +// Setting a higher resolution can improve the accuracy of time-out intervals in wait functions. +// However, it can also reduce overall system performance, because the thread scheduler switches tasks more often. +#define SUPPORT_WINMM_HIGHRES_TIMER 1 // Use busy wait loop for timing sync, if not defined, a high-resolution timer is setup and used //#define SUPPORT_BUSY_WAIT_LOOP 1 // Use a half-busy wait loop, in this case frame sleeps for some time and runs a busy-wait-loop at the end |
