facebook/igl

Why does the Android OpenGL demo flicker frequently?

vinsentli opened this issue · 7 comments

Android OpenGL demo flicker frequently,Vulkan demo is OK .

Could you provide more information? Which demo?
Please provide the command line. you were using and also which device were you testing on?

I test Textured3DCubeSession, ColorSession , the two examples both flicker frequently .
My device is Samsung Galaxy Tab S7+ and Huawei Mate 60.

Screen_Recording_20240329_091500_IGL.mp4
7248b3e498bc8f6bfa80d2282b868956.mov

I noticed this as well.

@corporateshark No repro on Pixel 7 Pro, probably we need to check on a device with Adreno 650

It's because we're always calling ICommandBuffer::present(), but EGL is doing this for us on Android. We added a shouldPresent flag to ShellParams so we can avoid this:

bool shouldPresent = true;

We haven't updated the sample apps yet to check this before calling present though.

It's because we're always calling ICommandBuffer::present(), but EGL is doing this for us on Android. We added a shouldPresent flag to ShellParams so we can avoid this:

bool shouldPresent = true;

We haven't updated the sample apps yet to check this before calling present though.

yes , it works fine now