olexale / arkit_flutter_plugin

ARKit Flutter Plugin
MIT License
798 stars 228 forks source link

using multi network images gets UI unresponsiveness in main thread for a while and hanging the screen for more than 1 min #216

Open a7medlord opened 10 months ago

a7medlord commented 10 months ago

the issue basically comes when I tried to load 100 networks images in "DetectionImages" attribute inside "ArKitSceneView" using "ArkitReferenceImage" object

so main ArkitSceneView screen gets hanging for more than 1 min and xcode drops warring by every image loaded said "[CFNetwork] Synchronous URL loading of image.png should not occur on this application's main thread as it may lead to UI unresponsiveness. Please switch to an asynchronous networking API such as URLSession."

plz help me out to fix this issue