[Interest] Outstanding memory usage by AnimatedSprites on iOS?
Nuno Santos
nuno.santos at imaginando.pt
Tue Nov 5 14:04:59 CET 2024
Hi,
I’m facing memory management issue on iOS.
I have a UI that relies on AnimatedSprited.
I have several sprites. The bigger one has 101 frames, and each frame is only 126x126 pixels. However the sprite file is 1.6 MB. There are others.
In the UI I have several knobs and UI elements using sprites.
When I load this UI, the memory goes up by 750 MB. However in desktop (Mac or Windows) the increase in memory is barely noticed (only 50 MB).
Is there any special reason for this to be so different in iOS?
An application on iOS cannot take more than 2Gb (this value can be smaller in weaker devices), otherwise the operating system will shutdown the application.
What can I do in order to reduce this impact?
Has anyone faced this problem before?
Thanks in advance!
Regards,
Nuno
More information about the Interest
mailing list