Skip to content

Commit ef3fc67

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

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
@@ -383,6 +383,8 @@ struct GlWindow : Window
383383
window = SDL_CreateWindow("ThorVG Example (OpenGL/ES)", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE);
384384
context = SDL_GL_CreateContext(window);
385385

386+
SDL_GL_SetSwapInterval(0); // disable fps limit
387+
386388
//Create a Canvas
387389
canvas = tvg::GlCanvas::gen();
388390
if (!canvas) {

0 commit comments

Comments
 (0)