Question about wxListCtrl refresh performance Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Tapsa
Earned some good credits
Earned some good credits
Posts: 144
Joined: Tue Dec 06, 2011 5:52 pm
Location: Helsinki

Question about wxListCtrl refresh performance

Post by Tapsa » Tue Jun 30, 2015 8:37 am

When I call this, is it actually refreshing items that are not visible, and thus wasting enormous amounts of time?

Code: Select all

list->RefreshItems(list->GetTopItem(), list->GetItemCount() - 1);
I can see some flickering on the wxListCtrl, but it seems to refresh really fast.

User avatar
doublemax
Moderator
Moderator
Posts: 15079
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Question about wxListCtrl refresh performance

Post by doublemax » Tue Jun 30, 2015 8:41 am

What if you just call Refresh()?
Use the source, Luke!

Tapsa
Earned some good credits
Earned some good credits
Posts: 144
Joined: Tue Dec 06, 2011 5:52 pm
Location: Helsinki

Re: Question about wxListCtrl refresh performance

Post by Tapsa » Tue Jun 30, 2015 8:55 am

:) I forgot that. Though it seems to be as fast so the difference is negligible.

Post Reply