• Advertisement
Sign in to follow this  

What about sharing a single render target texture?

This topic is 4361 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement