PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

EglSwapBuffers and X50v

I noticed, when i call EglSwapBuffers, that i get tearing artifacts, which usually result from non synchronized screen writes. Is there any way to enable a sychronous buffer swap?

Tala
Tala wrote:I noticed, when i call EglSwapBuffers, that i get tearing artifacts, which usually result from non synchronized screen writes. Is there any way to enable a sychronous buffer swap?

Tala

Interesting... Didn't we suspect earlier that the low framerates stem from eglSwapBuffers actually being sync'd?

- HM
I did some testing. It seems that the window must be fullscreen and the focus needs to be set in order to make drawing synchronous. (Otherwise it is much slower anyway). The screen refresh is about 55Hz instead of the expected 60Hz.
I also noticed that the swap chain consists of 2 color (back)buffers per default.
Too bad there is no way (that i know of) to synchronize your game to half the screen refresh, which would be very desirable. At the moment i am playing around with high performance timern to synchronize to about 55/2 Hz, but as expected there are some hickups every few seconds.

Tala
i also noticed that the focus must be set to the rendering window - otherwise there is a serious performance drop (something like 20-30%).

any ideas on why this is the case?

Daniel