3Nu

Hi @ all, i'd want know if calling IDirect3DDevice9::reset() is the correct way after switching from windowed mode to fullscreen.

In PresentParameters there are some attributes that have sense only in fullscreen mode, as well as FullScreen_RefreshRateInHz or MultiSampleType.

Have I to call reset() function Is it the correct way What do I have still to check

Thx ;)



Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

BLANC Guillaume

Yes Reset() is the right way to switch to full screen, it's also the way to change any present parameter.
Take care that windows style often need to be modified when moving to fullscreen : see Dx tutorial Step 1-"Creating a Window" for more details about that.
You could also have a look to DXUT code which does that well.




Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

ProfEclipse

Be aware that certain changes to the present parameters, such as bit depth, will require that the device be released and recreated. You can test for that, or just let the Reset fail and then fallback to device recreation.





Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

Wessam Bahnassi

ProfEclipse wrote:
Be aware that certain changes to the present parameters, such as bit depth, will require that the device be released and recreated. You can test for that, or just let the Reset fail and then fallback to device recreation.
How did you get into this conclusion




Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

BLANC Guillaume

I've gone through the SDK docs after reading this post and did not find anything about it. I have'nt got time to do some more tests but I've never noticed so far.
Do you also think that conclusion's wrong





Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

Wessam Bahnassi

Yes. It's incorrect. All of the options in D3DPRESENT_PARAMETERS can be changed with just a device reset.




Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

ProfEclipse

Wessam Bahnassi wrote:
ProfEclipse wrote:
Be aware that certain changes to the present parameters, such as bit depth, will require that the device be released and recreated. You can test for that, or just let the Reset fail and then fallback to device recreation.

How did you get into this conclusion

Sorry. I misinterpreted some DXUT code. Please, pay no attention to the man behind the curtain...





Re: Game Technologies: Graphics Reset or not reset a IDirect3DDevice9?

3Nu

THX @ all ;)