chronozphere
18-05-2007, 10:49 AM
Hi everyone. :)
I have a few questions concerning Swapchains, because i want to implement them in my engine.
1. changing a swapchain's displaymode
Normally, when you want to change the displaymode in your game, You release your video-resources, call Device.Reset with new presentation parameters and restore your video-resources again. When using multiple swapchains, this isn't very efficient when you only need to change ONE swapchain.
So i thought it might be okay to release the swapchain you wish the displaymode to be changed, and recreate it with new presentation parameters. Is this a good way of doing this??
If so, is it possible to release all swapchains a device has, and recreate them with new presentation parameters, without having to free/restore other video resources?? This seems more efficient to me than the Device.reset method, also when you only have one swapchain. :)
2. swapchains v.s full-screen rendering
What happens when you create a fullscreen swapchain?? Of course, rendering to the other swapchains is ridiculous, but is this a valid action?? :?
And what about multiple full-screen swapchains?? :twisted:
thank you! ;)
I have a few questions concerning Swapchains, because i want to implement them in my engine.
1. changing a swapchain's displaymode
Normally, when you want to change the displaymode in your game, You release your video-resources, call Device.Reset with new presentation parameters and restore your video-resources again. When using multiple swapchains, this isn't very efficient when you only need to change ONE swapchain.
So i thought it might be okay to release the swapchain you wish the displaymode to be changed, and recreate it with new presentation parameters. Is this a good way of doing this??
If so, is it possible to release all swapchains a device has, and recreate them with new presentation parameters, without having to free/restore other video resources?? This seems more efficient to me than the Device.reset method, also when you only have one swapchain. :)
2. swapchains v.s full-screen rendering
What happens when you create a fullscreen swapchain?? Of course, rendering to the other swapchains is ridiculous, but is this a valid action?? :?
And what about multiple full-screen swapchains?? :twisted:
thank you! ;)