Render limitation?
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 12
- Joined: Wed Jun 04, 2008 21:24
Render limitation?
I'm trying to draw a large number of CEGUI StaticImages to the screen, but once I reach about 1000 objects, some of the windows won't draw until others have been deleted. Is there a limitation set into CEGUI or Ogre to only render so many of them? If so, can it be disabled?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Yes this limitation exists within the CEGUI code, and to be honest, there's no good reason for it. It's a left-over from years back which was never really addressed (the in-progress renderer rewrite does remove this limitation).
If you want to change this yourself, currently you'll have to look in the file src/CEGUIRenderer.cpp and you'll see this:
It's a matter of changing those and rebuilding I'm afraid :-/
HTH
CE.
Yes this limitation exists within the CEGUI code, and to be honest, there's no good reason for it. It's a left-over from years back which was never really addressed (the in-progress renderer rewrite does remove this limitation).
If you want to change this yourself, currently you'll have to look in the file src/CEGUIRenderer.cpp and you'll see this:
Code: Select all
const float Renderer::GuiZInitialValue = 1.0f;
const float Renderer::GuiZElementStep = 0.001f; // this is enough for 1000 Windows.
const float Renderer::GuiZLayerStep = 0.0001f; // provides space for 10 layers per Window.
It's a matter of changing those and rebuilding I'm afraid :-/
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 10 guests