Page 1 of 1

Rendering many many widgets

Posted: Tue Oct 17, 2006 09:46
by vinnythetrue
Hello crazy people

In my GUI, I have really A LOT of widgets, so much that at some point some become invisible and such.

So I'm wondering if it comes from here :

Code: Select all

// in file CEGUIRenderer.cpp

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.


So do you think that passing the 1000 window "limit" could produce such results ? And if so, what would your advise be, lowering GuiZElementStep ?

Posted: Tue Oct 17, 2006 10:22
by CrazyEddie
yes, and yes. Though also change GuiZLayerStep so that is consistent too :)