Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Point sprite performance suffers when scaled up

3 views
Skip to first unread message

Gunit63

unread,
Oct 16, 2009, 1:14:19 PM10/16/09
to
I am having a performance problem when attempting to render point sprites
scaled up. When the point sprites are small my frames per second can be
around 30fps, as the point sprites are scaled up, the performance reduces to
as low as 2fps. I have shader that handles coloring, rotating the texture.
Any help would be appreciated.
Thanks.

mikfig

unread,
Oct 18, 2009, 11:57:40 PM10/18/09
to
On Oct 16, 10:14 am, Gunit63 <Guni...@discussions.microsoft.com>
wrote:

Sounds like it might be because of overdraw, you have a lot of pixels
that are being rendered but then they are thrown away because the
pixels from another particle overlap it.

Richard [Microsoft Direct3D MVP]

unread,
Oct 19, 2009, 12:02:35 AM10/19/09
to

[Please do not mail me a copy of your followup]

=?Utf-8?B?R3VuaXQ2Mw==?= <Gun...@discussions.microsoft.com> spake the secret code
<7A1197A3-B027-4D74...@microsoft.com> thusly:

>I am having a performance problem when attempting to render point sprites
>scaled up. When the point sprites are small my frames per second can be
>around 30fps, as the point sprites are scaled up, the performance reduces to
>as low as 2fps. I have shader that handles coloring, rotating the texture.

What you're describing is the situation when you're fill rate limited.
As you scale up the point sprites, the shaders are executed for more
and more pixels and that causes you to be limited by the rate at which
you can execute your pixel shader.

The only way around this is to speed up the rate at which your sprites
can be colored or reduce the number of sprites that are drawn. For
the former, look for ways to simplify your shader in the case of
extreme magnification. Look for ways to replace shader execution with
texture lookups. For the latter, look for ways to identify sprites
that are completely obscured and not draw them.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

Legalize Adulthood! <http://legalizeadulthood.wordpress.com>

0 new messages