Discord Moderators Pirulax Posted August 21, 2017 Discord Moderators Share Posted August 21, 2017 I think the Title says it all. What dxSetRenderTarget() is used for?And could you give me some example other than on the wiki? Link to comment
Saml1er Posted August 21, 2017 Share Posted August 21, 2017 Render target is just like a paper. You simply draw whatever you want on the paper and finally, render the paper instead of rendering every single piece of 2D element or objects that you want to render. This is will save you expensive CPU cycles and thus give you better FPS. Now, what if you want to update the elements on the render target every 10 seconds? Well, you can destroy the render target and recreate it, draw (rectangles, images or text) on it and render it. Sounds good but what if you want to update the render target every 0.1 second or even faster? then that's where you cannot use render target. You'll need to render the drawing by calling it every 60 seconds or more ( That's how onClientRender works ). Read this: https://msdn.microsoft.com/en-us/library/bb976073(v=xnagamestudio.31).aspx Link to comment
Discord Moderators Pirulax Posted August 22, 2017 Author Discord Moderators Share Posted August 22, 2017 Aha, okey, thanks Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now