Search found 7 matches
- Wed Jan 14, 2015 15:28
- Forum: Help
- Topic: [Solved] Memory consumption while loading layouts.
- Replies: 8
- Views: 4719
Re: [Solved] Memory consumption while loading layouts.
Strings and localization is not my area, it's up to my colleague, but when putting text into CEGUI windows we convert it to CEGUI::string. Anyway, we need multilanguage, so ASCII is not enough.
- Wed Jan 14, 2015 12:15
- Forum: Help
- Topic: [Solved] Memory consumption while loading layouts.
- Replies: 8
- Views: 4719
Re: [Solved] Memory consumption while loading layouts.
Here are steps that I've made: Copy/paste Label widget from TaharezLook.looknfeel of CEGUI 0.8.x to the same file in my CEGUI 0.7: <WidgetLook name="TaharezLook/Label"> ... </WidgetLook> Add the following line to TaharezLook.scheme file: <FalagardMapping WindowType="TaharezLook/Label&...
- Tue Dec 30, 2014 13:39
- Forum: Help
- Topic: [Solved] Memory consumption while loading layouts.
- Replies: 8
- Views: 4719
Re: Memory consumption while loading layouts.
Thanks, I will try.
- Tue Dec 30, 2014 13:14
- Forum: Help
- Topic: [Solved] Memory consumption while loading layouts.
- Replies: 8
- Views: 4719
Re: Memory consumption while loading layouts.
Thanks for your reply. As a quick solution, I've just made loading/unloading of needed layouts. Then I tried to load a layout with 100 TaharezLook/StaticImage's and got memory usage of 1.737.104 bytes. With 100 TaharezLook/StaticText's I got 19.654.864 bytes. So the problem is in StaticText - it is ...
- Fri Dec 26, 2014 14:26
- Forum: Help
- Topic: [Solved] Memory consumption while loading layouts.
- Replies: 8
- Views: 4719
[Solved] Memory consumption while loading layouts.
Hello! I use CEGUI 0.7.7 with Ogre renderer. I call CEGUI::WindowManager::getSingleton().loadWindowLayout(root); to load a list of 17 layout files. Each of them contains a lot of CEGUI elements, mostly StaticImage or ImageButton. Total amount of elements in all files is about 2500. After calling loa...
- Thu Oct 10, 2013 08:04
- Forum: Modifications / Integrations / Customisations
- Topic: Displaying flipped StaticImage.
- Replies: 2
- Views: 10865
Re: Displaying flipped StaticImage.
A little correction: I realised that there is no need to get image width, we need to know corresponding window width in pixels. So, the function now looks much simplier: void MainMenuWindow::SetStaticImageHorizontalFlip(CEGUI::Window *win, bool flip) { float width = win->getPixelSize().d_width; // M...
- Wed Oct 09, 2013 11:05
- Forum: Modifications / Integrations / Customisations
- Topic: Displaying flipped StaticImage.
- Replies: 2
- Views: 10865
Displaying flipped StaticImage.
Hello All, My post is related to CEGUI 0.7.7. Don't know if this is a frequent problem, but in our project we need to display some pictures with opposite orientation (it's a game battle screen with character icons at the left and mirrored icons at the right). So I used CEGUI layout containing Static...