[Interest] Outstanding memory usage by AnimatedSprites on iOS?

Nuno Santos nuno.santos at imaginando.pt
Wed Nov 6 13:22:18 CET 2024


Hi,

I have created the following bug report with an example that illustrates the problem:

https://bugreports.qt.io/browse/QTBUG-130918

Regards,

Nuno

> On 5 Nov 2024, at 13:04, Nuno Santos <nuno.santos at imaginando.pt> wrote:
> 
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241106/12be2988/attachment.htm>


More information about the Interest mailing list