Search found 5 matches

by zanir
Wed Jun 27, 2007 18:15
Forum: Help
Topic: BUG: Listbox::findItemWithText skip start_item
Replies: 2
Views: 3068

I understand but maybe const ListboxItem* start_item should be named differently. For example start_skipped_item, start_and_skipped_item. Somebody can create code like: ListboxItem* item = findItemWithText("text", 0); while(getItemIndex(item)+1<getItemCount() &a...
by zanir
Wed Jun 27, 2007 17:30
Forum: Modifications / Integrations / Customisations
Topic: Combobox query
Replies: 11
Views: 7801

Bug: Show of drop down list clear selection

Issue with cleaning a selection if drop down list is showed and item is not selected is still not fixed. So I have to use code: CEGUI::ListboxItem* pItem = pCombo->findItemWithText(pCombo->getText(), NULL); instead: CEGUI::ListboxItem* pItem = pCombo->getSelectedItem();
by zanir
Wed Jun 27, 2007 17:16
Forum: Help
Topic: BUG: Listbox::findItemWithText skip start_item
Replies: 2
Views: 3068

BUG: Listbox::findItemWithText skip start_item

/************************************************************************* Search the list for an item with the specified text *************************************************************************/ ListboxItem* Listbox::findItemWithText(const String& text, const ListboxItem* start_item&...
by zanir
Fri Jun 15, 2007 14:55
Forum: Help
Topic: loadWindowLayout is slow
Replies: 3
Views: 4898

I did performance profiling on debug build. Loading of the layout last 2800 ms. Time in addProperty function was 990 ms with old code. With the new code time dropped to 650 ms. It is approximately about 1/3 faster. The majority of time was lasted in both cases in finding a property by name in map. I...
by zanir
Fri Jun 15, 2007 13:09
Forum: Help
Topic: loadWindowLayout is slow
Replies: 3
Views: 4898

loadWindowLayout is slow

I use dynamic loading of new layouts but it is slow. Loading of layout with 38 controls last 0.2 second on relase build (1.2 second on debug). I did performance profiling and I found out that CEGUI is creting about 300 windows and for each window sets about 40 properties. So addProperty(Property* pr...

Go to advanced search