Jump to content
  • Advertisement
Sign in to follow this  
RenderCache

RenderToSurface & RenderTarget diff??

This topic is 4955 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

hihi! juz wondering wat r the signifcant differences between using render to surface and render target when doing a render to texture?? so far i have been using render to surfaces for abt >128 passes for the pixel shaders, i noticed that offscreen rendering via render to surfaces will incur a slight performance penalty as well. i know we can create textures, then take that surface ptr out and append to either render to surface or render target. i am not referring to MRTs. seems like we could simply "toggle" between these rendertargets, instead of using render to surfaces, and yet acheiving the objective of rendering to a texture... can it? thx! RC

Share this post


Link to post
Share on other sites
Advertisement
ID3DXRenderToSurface is just a wrapper around IDirect3DDevice9::SetRenderTarget() and the associated functions. There is going to be a slight overhead, because all of the function calls have to go through this interface first.

So to answer your question: Yes, you can use either/or, since they do the exact same thing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!