Author Topic: Memory usage using scrollview  (Read 3950 times)

xiewenqi.cs@gmail.com

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Memory usage using scrollview
« on: March 02, 2014, 10:35:32 PM »
Hi, there is a scrollview containing a vertical grid of 20+ elements in my game, and each element contains some label and some sprites from one common atlas. I noticed there are almost 5M memory used by these elements in profile, most of which are "Font materials" and refereces to that atlas (which size is actually 6M+), each takes 145KB or so.

I have no idea how to deal with this because there are a lot scrollviews in my game with lots of similar elements, if each one takes 5M+, that would be very annoying. Please help me out!


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Memory usage using scrollview
« Reply #1 on: March 03, 2014, 11:35:29 PM »
Is this with the latest version of NGUI? I recently reduced the amount of memory used by meshes.

xiewenqi.cs@gmail.com

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Memory usage using scrollview
« Reply #2 on: March 09, 2014, 08:33:57 PM »
Is this with the latest version of NGUI? I recently reduced the amount of memory used by meshes.

No,i'm using 3.0.6f7,i'll try lastest one, thank you


------------------
UPDATE:

Great, I updated NGUI to 3.5.3, and the scrollview now takes only 0.7M memory! Wonderful improvements!
« Last Edit: March 11, 2014, 07:08:45 AM by xiewenqi.cs@gmail.com »