Some platforms seem to have an issue with syncing GL operations among threads that results with different graphics artifacts (blinking, rendering old content, etc).
This patch uses GLFenceSync for Nicosia webgl that has less perormance penalty than glFinish().
If GLsync API is not availabe use glFinish() still.
Some platforms seem to have an issue with syncing GL operations among threads that results with different graphics artifacts (blinking, rendering old content, etc).
This patch uses GLFenceSync for Nicosia webgl that has less perormance penalty than glFinish(). If GLsync API is not availabe use glFinish() still.