Skip to main content
GameDev.net gamedev.net
🔒 Locked

Backbuffer resolution

Started by G-Man9566 Jul 1, 2011 at 1:14 PM 3 replies 1.9k views
Original Post
G-Man9566
G-Man9566
Hi,

When one adjusts a game's screen resolution (you know typically in the game's "Options->Graphics"), is it actually the BackBufferWidth and BackBufferHeight of the D3DPRESENT_PARAMETERS (D3D) for a device, that is being set?
NightCreature83
NightCreature83

Hi,

When one adjusts a game's screen resolution (you know typically in the game's "Options->Graphics"), is it actually the BackBufferWidth and BackBufferHeight of the D3DPRESENT_PARAMETERS (D3D) for a device, that is being set?


You will have to recreate the whole swap chain to change the resolution of a game, which can be done by recreating the device with the appropriate D3DPresent parameters. But generally it is nicer to just destroy your swap chain and recreated that as that wouldn't force you to reload assets that are created in the managed pool.
G-Man9566
G-Man9566
Thanks, but I actually want to know if the game's screen resolution is directly correlated to the backbuffer width and height of the present params?
G-Man9566
G-Man9566

Yes, usually.


Thx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.