Hi there, when i was playing around with ListView, the question comes to me :
If i have a widget, that i intend to display 5K or more items, i can achieve that in 2 ways :
use ListView
usethe combination of a Scrollbox and a Wrapbox.
I already know that ListView REUSE the EntryWidget, but meanwhile it needs to create and hold 5K UObjects in memory; on the other side, using Wrapbox means creating hold 5K widgets. What is the performance difference, will it be better to use wrapbox than listview at certain time?
Use List View. But it also depends on how complex the widgets are. The more complex the widget, the more likely I’d have just a handful of them instantiated by the list view.
If I had a gallery of 200 clickable icons that do nothing else but show an image and dispatch a click, I wouldn’t bother with a list view and its objects. 5k simple widgets? I’d probably go for a list view, unless I must display 1000 of them at the same time. Probably still a list view.
I once made a combat log where each line entry was a widget. Border + Rich Text. With half a million entries, the only difference was a (not much) larger memory footprint when using a list view.
Things go south very quickly when you tried to load the game and, all of sudden, 50k widgets needs creating and immediately added to a scrollbox… This was a much smoother experience with a list view.