Boxed textures bad perf

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
IJs
Just popping in
Just popping in
Posts: 9
Joined: Sun Mar 13, 2005 13:42
Contact:

Boxed textures bad perf

Postby IJs » Sun Jul 24, 2005 13:47

I'm designing a GUI for our CEGUI-powered application, and i've came across various issues related to the textures. Here's one.

Controls like the editbox and combobox resize their texture to the height of the font. If you're using a theme with pixel-art-style textures (1 pixel borders) this becomes rather nasty, because the borders get resized and become blurred.
I know this is defined inside the theme dll (WindowsLook, TaharezLook). I solved this by using a 'box'-texture (TopLeft, Top, TopRight, Left, Middle, ..., Bottom, BottomRight) instead of the default way of doing it (Left, Middle, Right).
However, this affects the performance of the application. No horrible fps rates, but you can notice the difference between my theme demo and the taharez demo.
I suppose this is the right way to do it? Just making sure.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Boxed textures bad perf

Postby CrazyEddie » Mon Jul 25, 2005 18:20

Your approach is pretty much correct if you do not want stretching. There will be a performance cost, since you are drawing nine images per widget instead of three - this is to be expected.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests