Optimizing Memory Management

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

tedlin01
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 29, 2009 19:22

Optimizing Memory Management

Postby tedlin01 » Thu Jan 20, 2011 00:49

Hello!
I am using a total of +-100mb of systemmemory using CEGUI. What can I possible do to decrease the usage of system memory?
One way I was thinking of was to release memory that I don't need for the moment but I havnt figured out how to destroy objects in CEGUI to retreive the memory that was allocated for it when loading the imageset.

Also, Is it possible to modify textures in some how or load imagesets and textures in some how to decrease the allocated memory?

Kind Regards..

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

Re: Optimizing Memory Management

Postby Kulik » Thu Jan 20, 2011 12:22

Using std::string instead of the utf32 CEGUI string will be possible in CEGUI 0.8 so if you don't need unicode, all your strings will effectively be 4x smaller in memory with no additional utf8 buffer. You can destroy entire Window hierarchies that you don't need using WindowManager::destroyWindow

Are you sure the 100 MB is entirely taken by just CEGUI?

tedlin01
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 29, 2009 19:22

Re: Optimizing Memory Management

Postby tedlin01 » Fri Jan 28, 2011 10:47

yes, its accually more then 100mb.. And i noticed it wasnt so easy to just delete stuff hehe. Alot of work to unnestle things from each others... Is there easyfixes to improve memorystorage? Like change the format textures is stored in or gain some memory per windows by some setting. I mean when I load some layouts they just take 25mb+. and yes its alot of windows :)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests