Sign in to follow this  
jimipeisun

What about sharing a single render target texture?

Recommended Posts

jimipeisun    122
I need a lot of render target textures with the same size and format in each loop. If I share a single render target texture, I can save a lot of memory! may it result in other problem?

Share this post


Link to post
Share on other sites
jollyjeffers    1570
It's quite common to use a ring-buffer and "ping pong" between them.

I discussed a few similar things in my journal last year - My original idea (16 lights per frame @ 240mb of VRAM) down to my revised method (~20mb for unlimited lights per frame) [grin]

Drawing up data-flow diagrams is usually a good plan here - work out exactly where your inputs and outputs go, and for how much of the frame you actually need to store unique results (e.g. my above plan works because I composite each light as I finish it).

hth
Jack

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