Skip to content

Commit fa7c853

Browse files
committed
glwindow: disable fps limit for accurate fps measurement
1 parent f4beb99 commit fa7c853

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Example.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ struct GlWindow : Window
370370
{
371371
if (!initialized) return;
372372

373+
SDL_GL_SetSwapInterval(0);
374+
373375
#ifdef TVGEXAMPLE_GLES_SUPPORTED
374376
SDL_SetHint(SDL_HINT_OPENGL_ES_DRIVER, "1");
375377
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);

0 commit comments

Comments
 (0)