EasyAR 3 image target optimization tips?

0 votes
asked Nov 14, 2019 by spaceagent (1,290 points)

We are experiencing crashes on devices with low memory when we are loading a lot of image targets at start of the app. Profiling the app we identified this functions to be the largest resource consumers www.get_texture() and ImageHelper.decode().

Are there any tips for optimizing the memory usage of image targets? 

Png or jpg (or other format), which is better? 

Will lower resolution images help?

1 Answer

+1 vote
answered Nov 18, 2019 by emanuel (390 points)

Greetings, in my case I thought that unstead of getting the image using www or UnityWebRequest, wich in my opinion is slower and error prone, it would be better to set the image as a parameter.

You could use the code I've written in the following file:

https://github.com/emanuelhm/UnityEasyARCustomization/blob/master/UnityEasyARCustomization/ImageTarget.cs

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...