Welcome,
Guest
. Please
login
or
register
.
April 21, 2026, 11:09:25 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Would pooling be a best practice for handling labels in scrollviews?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Would pooling be a best practice for handling labels in scrollviews? (Read 3746 times)
DuaneDog
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 27
Would pooling be a best practice for handling labels in scrollviews?
«
on:
March 05, 2014, 06:40:55 AM »
When I'm populating my scrollviews, right now I'm destroying all of them and then loading then reinitializing them to repopulate the scrollview. Once the list gets more than about 50 items you can actually see the performance hit. I'm curious if a better practice would be to use some kind of pooling so that at least after the first time they are made rather than creating and destroying them over and over they are reused?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Would pooling be a best practice for handling labels in scrollviews?
«
Reply #1 on:
March 05, 2014, 07:36:44 AM »
Sure, if you disable them instead of destroying them, you can unparent them and keep them in some kind of a cache.
Logged
Nicki
Global Moderator
Hero Member
Thank You
-Given: 33
-Receive: 141
Posts: 1,768
Re: Would pooling be a best practice for handling labels in scrollviews?
«
Reply #2 on:
March 05, 2014, 01:59:07 PM »
Caching and pooling is generally always a better option, since intantiate is hardly free. It's just a bit of work, so if it's not needed, people tend to not do it.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Would pooling be a best practice for handling labels in scrollviews?