typedef struct _D3DPRESENT_PARAMETERS_ { UINT BackBufferWidth; UINT BackBufferHeight; D3DFORMAT BackBufferFormat; UINT BackBufferCount;
D3DMULTISAMPLE_TYPE MultiSampleType; DWORD MultiSampleQuality;
D3DSWAPEFFECT SwapEffect; HWND hDeviceWindow; BOOL Windowed; BOOL EnableAutoDepthStencil; D3DFORMAT AutoDepthStencilFormat; DWORD Flags;
/* FullScreen_RefreshRateInHz must be zero for Windowed mode */ UINT FullScreen_RefreshRateInHz; UINT  resentationInterval; } D3DPRESENT_PARAMETERS;
在下想請問各位大人就是 D3DPRESENT_PARAMETERS 這個資料結構裡每個參數的用處!!!
像是 PresentationInterval 這個參數在下用時不知道為什麼CPU都跑50%
總感覺CPU快燒掉的樣子
如果不用 PresentationInterval 這個參數的話
程式也是可以執行的
感覺 resentationInterval 這個參數好像可以不用!!!
所以想請各位大人幫在下解答一下 D3DPRESENT_PARAMETERS 這個資料結構裡每個參數的用處!!!
拜託各位大人了
謝謝!!! |