Closed dreua closed 1 year ago
I think this looks like it might be related to the accelerometer... Not sure.
I see this also when not using the accelerometer. From what I've seen, there are some buffers/textures that have to be released on suspend
I don't actually know how to fix this - if you can investigate, I am def up for some PRs.
I've spent some time looking at this; the minimum code that triggers this is
int main( int argc, char ** argv )
{
CNFGBGColor = 0x000040ff;
CNFGSetupFullscreen( "Test Bench", 0 );
while(1)
{
CNFGHandleInput();
CNFGSwapBuffers();
}
}
CNFGHandleInput
is necessary to process Android events - otherwise the app is just busy looping.
Commenting out CNFGSwapBuffers
makes the issue go away.
I have a "working" demo, but I am not sure if it's correct.. it does work on my phone!
I think this is solved then, thanks @DavidVentura !
Steps to reproduce:
adb logcat | grep cnfgtest
When closing the app (via recent tasks) it stops. Not sure if this is specific to my Android version / device.