Minimal redraws

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

wondersye
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Sun May 22, 2011 16:04

Minimal redraws

Postby wondersye » Sun Jun 05, 2011 10:50

Hi,

(it is based on the 0.7.5 version, Ubuntu, OpenGL direct rendering) an otherwise idle interface (ex: with Demo6 or Demo7) still uses quite a lot of CPU, about 1 core almost at 100%, I would say (it is difficult to tell as the OS seems to regularly move the processing from one core to another; is CEGUI single-threaded?). Couldn't we imagine that, should no event happen, no redraw should occur, thus resulting in almost no processing being needed? (except for the time-based revolving CEGUI logo)

On a related note, FPS are then higher than 500, thus I suppose there is no frame rate limiter in that sample (which may explain the load discussed above - at least partly); is it up to the CEGUI-using application to perform the throttling? I suppose yes (unless the time-injection could be used to have CEGUI take care of the frame rate?), maybe there is an example showing it?

These are only my first steps with CEGUI, and I am finding this library very neat, as the interfaces are quite impressive.
Congratulations for the good work!

Best regards,

Olivier Boudeville.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Minimal redraws

Postby Kulik » Sun Jun 05, 2011 12:29

Exactly, you are supposed to tell CEGUI when to render the GUI.

Usually games limit the framerate in the menus and optionally even ingame. You should be getting way more than 500 fps though, I get ~9000 fps in the simpler demos.

CEGUI has AutoRenderingSurface to speed up rendering when things aren't changing/moving.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest