Start a new topic

Some thoughts on AR.ImageResource

Some thoughts on AR.ImageResource
1 Comment


If you're developing an ARchitect World which makes heavy use of AR.ImageResource, please consider the following points:

Keep each image resource as small as possible (image dimensions, not file size).

Use only as much as you need. Destroy unused image resources to release the memory which was used by them.

If you want to display the same image resource multiple times, create only one image resouce and add that one to each image drawable which should display that resource.

If you instantiate a few image resouces to play a sprite animation, use the AR.AnimatedImageDrawable instead. They are optimized to manage large image resources.



Login or Signup to post a comment