rockchip-linux / kernel

BSP kernel source
Other
948 stars 1.1k forks source link

Disable VSYNC #25

Open teseo-sw opened 7 years ago

teseo-sw commented 7 years ago

Neither eglSwapInterval(0) nor vblank_mode=0 works as expected. Is there any other way to disable VSYNC?

wzyy2 commented 7 years ago

Why do you want to disable vsync? It's unnecessary, if you want to test performance, you can just swap the offscreen buffers.

There is no way to disable VSYNC. Both swap a buffer to the front layer via gles api(x11/wayland) and show them via drm api(gbm) will wait VSYNC.

teseo-sw commented 7 years ago

Yes, I can measure performance by rendering offscreen or putting monitor asleep. What if I need those additional 10 frames VSYNC rips me off?

wzyy2 commented 7 years ago

libmali-fbdev could avoid DRM force vsync.