Sign in to follow this  
champloo

adding post process slows down my frametime?

Recommended Posts

champloo    147
I'm new to graphics and still wondering how do people set up their post processing passes.
so I draw all my object onto a render target texture. and then apply FXAA on that texture and output to the back buffer.
This takes 7-8ms every frame.

Then I added another post process shader which do nothing but pass through color. And the frametime goes up to 14-15ms.
Is it normal or did I do something wrong?

the pipeline is something like this:

draw objects onto a screen size texture -> render the same texture onto another screen size texture -> apply fxaa to this texture and output to backbuffer

thanks,

Share this post


Link to post
Share on other sites
champloo    147
[quote name='mhagain' timestamp='1327880309' post='4907471']
Yup, that's normal. PP is fillrate sensitive and even a "do nothing" pass still needs to write out everything in the framebuffer all over again.
[/quote]
got it, guess i need to squeeze more stuff in one pass then

Share this post


Link to post
Share on other sites
MJP    19753
[quote name='champloo' timestamp='1327877993' post='4907460']

Is it normal or did I do something wrong?

[/quote]

That depends on the hardware, your resolution, and what you're doing. Adding an addition 7-8ms just for one post-processing effect does sound wayyyy too high, unless the hardware is extremely weak (Intel integrated graphics) and/or you're doing something really complex. What kind of hardware are you running on?

Share this post


Link to post
Share on other sites
champloo    147
[quote name='MJP' timestamp='1327897650' post='4907527']
[quote name='champloo' timestamp='1327877993' post='4907460']
Is it normal or did I do something wrong?

[/quote]

That depends on the hardware, your resolution, and what you're doing. Adding an addition 7-8ms just for one post-processing effect does sound wayyyy too high, unless the hardware is extremely weak (Intel integrated graphics) and/or you're doing something really complex. What kind of hardware are you running on?
[/quote]
it's a nvidia gt 525M. And the resolution is 1280x720.
and removing both post-processing effects causes my frametime drop to 1-2ms.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this