Page 1 of 1

FPS drops dramatically with tilable StaticImage

Posted: Sat Aug 27, 2005 15:08
by SupSuper
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.

Re: FPS drops dramatically with tilable StaticImage

Posted: Sat Aug 27, 2005 18:07
by CrazyEddie
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.

Re: FPS drops dramatically with tilable StaticImage

Posted: Sat Aug 27, 2005 22:17
by SupSuper
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.

Re: FPS drops dramatically with tilable StaticImage

Posted: Mon Aug 29, 2005 07:47
by CrazyEddie
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.

Re: FPS drops dramatically with tilable StaticImage

Posted: Mon Aug 29, 2005 13:41
by SupSuper
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 :)