Archived

This topic is now archived and is closed to further replies.

new3d

help

Recommended Posts

in my app,using d3d8 when i set my FullScreen_RefreshRateInHz to unlimited it wun run at all, but it works when i use default. can someone hlp me pls thnx

Share this post


Link to post
Share on other sites

D3DPRESENT_PARAMETERS present;
ZeroMemory(&present, sizeof(present));
present.SwapEffect = D3DSWAPEFFECT_FLIP;
present.Windowed = FALSE;
present.BackBufferFormat = d3ddm.Format;
present.BackBufferWidth = d3ddm.Width;
present.BackBufferHeight = d3ddm.Height;
present.EnableAutoDepthStencil = TRUE;
present.AutoDepthStencilFormat = D3DFMT_D16;
present.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;
present.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

hr = pID3D->CreateDevice(D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&present,
&pID3DDevice);

Share this post


Link to post
Share on other sites