Original Post
I am making an editor, I know D3D 11 is already available etc however I want to use D3D9 to maintain backwards compatibility.
Basically the problem with creating a graphical viewport using D3D9 is that to effectively resize without reloading all the resources the D3DPOOL_MANAGED resource pool is very useful, however it maintains a copy of the resources in system memory ...
I want to load the resources to Graphics memory and avoid leaving a copy in system memory for optimization reasons. I several plans ...
a) trying something like creating a very large back buffer and not recreating the device when the d3d9 pane is resized ... this has the problem that I don't have accurate pixels and the behaviour of the screen is more unpredictable.
b) using virtual memory to store the textures and meshes and then on resize simply re-creating the resources with a D3DPOOL_DEFAULT setting for the resource creation.
c) Simply using the D3DPOOL_MANAGED and using compressed meshes and textures ...
if there is a solution in later versions of D3D I would definitely try to support them if available on the system .
Any help is appreciated.
Basically the problem with creating a graphical viewport using D3D9 is that to effectively resize without reloading all the resources the D3DPOOL_MANAGED resource pool is very useful, however it maintains a copy of the resources in system memory ...
I want to load the resources to Graphics memory and avoid leaving a copy in system memory for optimization reasons. I several plans ...
a) trying something like creating a very large back buffer and not recreating the device when the d3d9 pane is resized ... this has the problem that I don't have accurate pixels and the behaviour of the screen is more unpredictable.
b) using virtual memory to store the textures and meshes and then on resize simply re-creating the resources with a D3DPOOL_DEFAULT setting for the resource creation.
c) Simply using the D3DPOOL_MANAGED and using compressed meshes and textures ...
if there is a solution in later versions of D3D I would definitely try to support them if available on the system .
Any help is appreciated.