FPS drops dramatically with tilable StaticImage

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
SupSuper
Just popping in
Just popping in
Posts: 17
Joined: Mon Feb 07, 2005 16:17
Location: Portugal
Contact:

FPS drops dramatically with tilable StaticImage

Postby SupSuper » Sat Aug 27, 2005 15:08

When using a StaticImage with a 1x2 tilable graphic, the FPS rating drops dramatically. Why, and how do I stop this from happening?
Btw, I'm using the CEGUI from CVS HEAD.

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

Re: FPS drops dramatically with tilable StaticImage

Postby CrazyEddie » Sat Aug 27, 2005 18:07

The more copies of the tile you draw, the more you will suffer in the performance department. This is just the way things are. You might consider creating a larger "pre-tiled" image, and then have that tiled within the window, since the base image is larger less copies will be needed and performance will suffer less.

User avatar
SupSuper
Just popping in
Just popping in
Posts: 17
Joined: Mon Feb 07, 2005 16:17
Location: Portugal
Contact:

Re: FPS drops dramatically with tilable StaticImage

Postby SupSuper » Sat Aug 27, 2005 22:17

Thanks, I made the tilable image 50x50 and now it doesn't affect performance. However, there's this odd occurance:
In 800x600, the image looks fine (its the green dark lines on the sidebar, below the timer and such):
Image
However, in another resolution (eg. 1024x768), the lines look very odd:
Image
Is this intended behaviour? The single greener line (below the timer buttons, only tiles horizontally) looks fine on both.

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

Re: FPS drops dramatically with tilable StaticImage

Postby CrazyEddie » Mon Aug 29, 2005 07:47

It's likely an issue with either auto-scaling and/or tile alignment.

I'll need to see the imageset xml file and, at least the relevant portion of, the texture file to have any more of an idea.

User avatar
SupSuper
Just popping in
Just popping in
Posts: 17
Joined: Mon Feb 07, 2005 16:17
Location: Portugal
Contact:

Re: FPS drops dramatically with tilable StaticImage

Postby SupSuper » Mon Aug 29, 2005 13:41

CrazyEddie wrote:
It's likely an issue with either auto-scaling and/or tile alignment.

I'll need to see the imageset xml file and, at least the relevant portion of, the texture file to have any more of an idea.
No need, I found out that autoscaling was set to true on the imageset. Set it to false and it looks fine now.

Thanks anyways :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 0 guests