Set swap interval to 0
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 24 Nov 2017 11:36:19 +0000 (11:36 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 11 Oct 2019 09:04:49 +0000 (05:04 -0400)
commit42797a6316f60d1f6327fef5afa8a10919165868
tree05604b42bbe554143fe36f097e353ce4e90e0f46
parent4b4f1d7a780a5fd9677455ab7b521a72f18f0f87
Set swap interval to 0

By default, when swapping front and back frame buffers, this is in sync
with v-blank, which prevents tearing.

So this means the tests does not run at is maximum allowed speed, but it
is restricted somewhat by the attached screen.

When running in a window and X realizes the is no monitor attached, the
server's Present code will vsync at 1 FPS, which artificially slow down
the tests a ton.

To avoid this issue, and also because we want to run things as fast as
possible, set the swap interval to 0, which basically deactivate the
sync.

Test: cmake .. -DDEQP_TARGET=x11_egl

Change-Id: I04bcb814fb289d58f8788e90f5118db0b7175777
(cherry picked from commit 27d658881fe4cc24890b28d3ee0162469b507665)
framework/egl/egluGLContextFactory.cpp
framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp
framework/platform/win32/tcuWGL.cpp