summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-14 12:49:54 +0200
committerRay <[email protected]>2023-10-14 12:49:54 +0200
commitb34c2ecbcb9da1d438b70acf8125ef5424744d11 (patch)
tree09c56fbad54fa55c1686616b49d64116d6d61a38 /src/rcore.c
parent4521a142c35fe9fe1386d79ae783363c9c164827 (diff)
downloadraylib-b34c2ecbcb9da1d438b70acf8125ef5424744d11.tar.gz
raylib-b34c2ecbcb9da1d438b70acf8125ef5424744d11.zip
WARNING: REDESIGN: `InitPlatform()` to initialize all platform data #3313
`InitGraphicsDevice()` could be confusing because the function actually initialized many things: window, graphics, inputs, callbacks, timming, storage... restructured it.
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rcore.c b/src/rcore.c
index d7aaa30b..e6015b33 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -2365,10 +2365,10 @@ int GetTouchPointCount(void)
// Initialize hi-resolution timer
void InitTimer(void)
{
-// 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.
-// High resolutions can also prevent the CPU power management system from entering power-saving modes.
-// Setting a higher resolution does not improve the accuracy of the high-resolution performance counter.
+ // 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.
+ // High resolutions can also prevent the CPU power management system from entering power-saving modes.
+ // Setting a higher resolution does not improve the accuracy of the high-resolution performance counter.
#if defined(_WIN32) && defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP)
timeBeginPeriod(1); // Setup high-resolution timer to 1ms (granularity of 1-2 ms)
#endif