diff options
| author | vitopigno <[email protected]> | 2023-08-21 00:36:00 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-21 00:36:00 +0200 |
| commit | 5ed83dfa2928bae7e7f53076a6edca789e513173 (patch) | |
| tree | f811433f9dad3bbeabb3c9c6e12a241e01d46443 /src | |
| parent | dfd0436428f95c31885646183d64678f05a80494 (diff) | |
| download | raylib-5ed83dfa2928bae7e7f53076a6edca789e513173.tar.gz raylib-5ed83dfa2928bae7e7f53076a6edca789e513173.zip | |
Update rcore.c (#3255)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index 1cae7f58..10303fe9 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4470,13 +4470,16 @@ static bool InitGraphicsDevice(int width, int height) #endif // Try to enable GPU V-Sync, so frames are limited to screen refresh rate (60Hz -> 60 FPS) - // NOTE: V-Sync can be enabled by graphic driver configuration + // NOTE: V-Sync can be enabled by graphic driver configuration, it doesn't need + // to be activated on web platforms since VSync is enforced there. +#if !defined(PLATFORM_WEB) if (CORE.Window.flags & FLAG_VSYNC_HINT) { // WARNING: It seems to hit a critical render path in Intel HD Graphics glfwSwapInterval(1); TRACELOG(LOG_INFO, "DISPLAY: Trying to enable VSYNC"); } +#endif int fbWidth = CORE.Window.screen.width; int fbHeight = CORE.Window.screen.height; |
