Hi, I'm currently using the official Spine iOS SDK in my SwiftUI app and would like to ask about the following:
My spine assets (.skel, .atlas and .pngs) are ~40mb which I use to instantiate the SkeletonDrawableWrapper
, but when I present them using SpineView
, memory usage for my app climbs up to around 1GB. The exact numbers are not as important, more so I was wondering what could be causing this spike in memory usage.
Not sure if this helps any, but when I try profiling with Instruments it shows the system libraries (specifically Metal? IOGPUResourceCreate and mmap) producing that memory spike.
As a follow up, is there a way to selectively load textures/assets into memory when instantiating the SpineModel/SpineView? From my understanding everything is loaded? Sorry, I'm not an expert in Spine.
Please let me know if you need more details, thank you!