Page 1 of 1

How to create windows from layout without accessing disk?

Posted: Tue Jun 21, 2011 01:33
by niexuchina
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?

Re: How to create windows from layout without accessing disk

Posted: Tue Jun 21, 2011 09:23
by Kulik
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

Re: How to create windows from layout without accessing disk

Posted: Wed Jun 22, 2011 03:00
by niexuchina
Thank you!