CEGUI (widgets) performance

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

timotei
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Apr 29, 2013 14:17

CEGUI (widgets) performance

Postby timotei » Sat Aug 30, 2014 09:22

Since I worked on the new widgets/views, I wanted to profile the performance to see if I was going in the right direction - and to see how much we/I have to optimise :D

I'm running the CEGUIPerformanceTests project, 5 times, averaging the times then to provide an average run time.
The listbox test structure is the following: https://bitbucket.org/cegui/cegui/src/c ... ult#cl-113
The actual tests are in here: https://bitbucket.org/cegui/cegui/src/c ... at=default

v0-8
    test name user time (seconds) wall time (seconds)
    TaharezLook/ItemListbox 2.65625 2.688418
    TaharezLook/Listbox 0.5 0.509723
    TaharezLook/Tree 1.953125 1.954541
    TaharezLook/ItemListbox 3.203125 3.19775
    TaharezLook/Listbox 0.5625 0.566376
    TaharezLook/Tree 2.140625 2.148735
    TaharezLook/ItemListbox 3.28125 3.306163
    TaharezLook/Listbox 0.6875 0.685054
    TaharezLook/Tree 2.515625 2.656166
    TaharezLook/ItemListbox 3.265625 3.289954
    TaharezLook/Listbox 0.640625 0.639085
    TaharezLook/Tree 2.28125 2.294811
    TaharezLook/ItemListbox 3.34375 3.376151
    TaharezLook/Listbox 0.5625 0.568956
    TaharezLook/Tree 2.203125 2.189048

    Average TaharezLook/ItemListbox: 3.15 3.1716872
    Average TaharezLook/Listbox: 0.590625 0.5938388
    Average TaharezLook/Tree: 2.21875 2.2486602

default
    test name user time (seconds) wall time (seconds)
    TaharezLook/ItemListbox 3.75 3.781654
    TaharezLook/Listbox 2.25 2.255588
    TaharezLook/Tree 2.203125 2.203748
    TaharezLook/ItemListbox 3.71875 3.74094
    TaharezLook/Listbox 1.921875 1.927312
    TaharezLook/Tree 1.890625 1.899239
    TaharezLook/ItemListbox 3 3.053063
    TaharezLook/Listbox 1.875 1.870378
    TaharezLook/Tree 1.90625 1.908315
    TaharezLook/ItemListbox 3.09375 3.109143
    TaharezLook/Listbox 1.921875 1.933439
    TaharezLook/Tree 1.921875 1.932067
    TaharezLook/ItemListbox 3.1875 3.204234
    TaharezLook/Listbox 1.875 1.882277
    TaharezLook/Tree 1.921875 1.925806

    Average TaharezLook/ItemListbox: 3.35 3.3778068
    Average TaharezLook/Listbox: 1.96875 1.9737988
    Average TaharezLook/Tree: 1.96875 1.973835

So, it seems that from v0-8 to default we had an increase in time (except for tree which seems to get better :D)
    TaharezLook/ItemListbox: 3.15 -> 3.35 = 6% performance decrease
    TaharezLook/Listbox: 0.59 -> 1.97 = 233% performance decrease
    TaharezLook/Tree: 2.21 -> 1.96 = 12% performance increase

Of all, Listbox got the greatest hit :hammer: . I'm not sure why this happened.

Any opinions on this? :D

timotei
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Mon Apr 29, 2013 14:17

Re: CEGUI (widgets) performance

Postby timotei » Sat Aug 30, 2014 11:23

Some profiling results:

v0-8:
Overall:
Image
Detail on drawSelf:
Image

default:
Overall:
Image
Detail on drawSelf:
Image

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: CEGUI (widgets) performance

Postby Ident » Tue Sep 02, 2014 18:04

I increased performance in the creation of geometry buffers. I plan to do more improvements in that section in the near future but you could test again already if you want.
CrazyEddie: "I don't like GUIs"


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 18 guests