Skip to content

Commit

Permalink
Some notes and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 29, 2023
1 parent 4625c41 commit 09075d5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/rcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
* rcore - Window/display management, Graphic device/context management and input management
*
* PLATFORMS SUPPORTED:
* - PLATFORM_DESKTOP:
* - PLATFORM_DESKTOP (GLFW backend):
* > Windows (Win32, Win64)
* > Linux (X11/Wayland desktop mode)
* > macOS/OSX (x64, arm64)
* > FreeBSD, OpenBSD, NetBSD, DragonFly (X11 desktop)
* - PLATFORM_DESKTOP_SDL (SDL backend):
* > Windows (Win32, Win64)
* > Linux (X11/Wayland desktop mode)
* > Others (not tested)
* - PLATFORM_WEB:
* > HTML5 (WebAssembly)
* - PLATFORM_DRM:
Expand Down Expand Up @@ -446,8 +450,8 @@ extern void UnloadFontDefault(void); // [Module: text] Unloads default font f
extern int InitPlatform(void); // Initialize platform (graphics, inputs and more)
extern void ClosePlatform(void); // Close platform

static void InitTimer(void); // Initialize timer (hi-resolution if available)
static void SetupFramebuffer(int width, int height); // Setup main framebuffer
static void InitTimer(void); // Initialize timer, hi-resolution if available (required by InitPlatform())
static void SetupFramebuffer(int width, int height); // Setup main framebuffer (required by InitPlatform())
static void SetupViewport(int width, int height); // Set viewport for a provided width and height

static void ScanDirectoryFiles(const char *basePath, FilePathList *list, const char *filter); // Scan all files and directories in a base path
Expand Down Expand Up @@ -2933,7 +2937,7 @@ void InitTimer(void)
// 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)
#if defined(_WIN32) && defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP) && !defined(PLATFORM_DESKTOP_SDL)
timeBeginPeriod(1); // Setup high-resolution timer to 1ms (granularity of 1-2 ms)
#endif

Expand Down

0 comments on commit 09075d5

Please sign in to comment.