Posts: 40
Joined: Thu Jul 19, 2012 7:23 am
Location: Czech Republic

Wait for V-Sync instead of eglSwapBuffer

Thu Apr 09, 2020 11:31 am

Hello. I use OpenGL ES 2.0 and at the end of each frame I usually call eglSwapBuffers to apply gl commands and wait for vsync to swap v-buffers. But sometimes in my app I don't need to redraw each frame each vsync (when nothings has changed) . I would like to save gpu power and heat produce with gpu. Is it possible in this situation to call command that will just only wait for vsync and that will not swap buffers ? Or how to achieve this in a different way and stay synchronized to vsync period ? I use opengl es on Rpi3 from console (without X).

Return to “Graphics programming”