Author Topic: Best way to optimize  (Read 2763 times)

gaurav.maniar

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 9
    • View Profile
Best way to optimize
« on: August 19, 2014, 04:20:02 AM »
I'm making an iOS game, it has 5 character and 60 small dress up images for each character, at a time only one character is displayed

how should i optimize image loading??
->load all images in UI2dSprite and put them outside the screen area and bring them to screen as required
->put all images in Resource folder and load the image when required (i have heard that, one should kept nothing inside Resource folder if possible)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Best way to optimize
« Reply #1 on: August 19, 2014, 11:28:16 AM »
I'd go with option #2 as you can then use Resources.UnloadUnusedAssets() to release them from memory after you're done using them.