How to create windows from layout without accessing disk?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

niexuchina
Just popping in
Just popping in
Posts: 3
Joined: Fri Aug 20, 2010 06:41

How to create windows from layout without accessing disk?

Postby niexuchina » Tue Jun 21, 2011 01:33

We need to create some windows on the fly. Now we are using WindowManager::loadWindowLayout() to do it. Because it accesses hard disk, or for some other reasons besides, we are suffering performance problem.

Is there any good methods to create windows from layout config in real time?

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

Re: How to create windows from layout without accessing disk

Postby Kulik » Tue Jun 21, 2011 09:23

You haven't posted any logs / version info, so I assume you are on 0.7.5

Perhaps cloning might be of help? You load the layout once and then just clone it to get as many instances as you need.

http://www.cegui.org.uk/wiki/index.php/Performance_tips

niexuchina
Just popping in
Just popping in
Posts: 3
Joined: Fri Aug 20, 2010 06:41

Re: How to create windows from layout without accessing disk

Postby niexuchina » Wed Jun 22, 2011 03:00

Thank you!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 13 guests