Home Features Docs Blog Support GitHub

ARSession issues when using initializeForView


(Raimund Wege) #1

Hi,

I’m trying to integrate an existing fullscreen augmented-reality libGDX app with ‘initializeForView’ in a new app. Everything works as expected …except the ARSession from ARKit. It seems there is suddenly a race-condition when the render thread wants to access the current frame from the session. The screen is freezing for a second, runs for a few milliseconds and freezes again. The app doesn’t crash. Also those logs appear:
[Technique] World tracking performance is being affected by resource constraints [1]
[Technique] World tracking performance is being affected by resource constraints [1]

Are there any known limitations when using ‘initializeForView’?

I will dig deeper now and come back when I have new information.


(Raimund Wege) #2

For now I got it to work by porting the texture binding code back to objective-c and call it by a delegate method from java. I will see if I find the time to make a repository to illustrate the issue and my workaround. I still don’t know why this isn’t an issue in the libGDX fullscreen application.