Sign in to follow this  
kovacsp

Rendering to multiple, different-sized windows

Recommended Posts

kovacsp    306
Hi, I've successfully rendered to two windows using one device and an additional swap chain. Now if I have two windows with different size, the first one has to be bigger, so that the device created will be large enogh for the second one to fit in. Here is my question: when rendering to the second (smaller) window, will my rendertarget be resized each frame (causing a performace decrease), or it uses only a part of the device in this case? Thanks for your answers, kp

Share this post


Link to post
Share on other sites
Syranide    375
I wouldn't think so, as you aren't drawing in the unused part of the buffer (setviewport or what it is called, which limits the drawing area to a rectangle).

If there would be any such thing it would probably have been noted on MSDN (have a look).

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