|

楼主 |
发表于 2003-9-29 13:44:00
|
显示全部楼层
Re:为什么direct的present竟然可以花费20NS还多?
我日他妈外国人的MMX啊,外国人太凶了,我才去gamedeV发了一下就弄对了,日,以后结婚一定要找外国人,我太爱外国人。。。。
外国人真是好动西啊。。。
The reason for this is may be that when you are creating your D3D device, one of the variables in the "presentation info" struct is not set right. In DX9, you should set the " resentationInterval" parameter of the D3DPRESENT_PARAMETERS struct that you pass to IDirect3D9::CreateDevice to D3DPRESENT_INTERVAL_IMMEDIATE. If you don't, your frame rate will be locked to the refresh rate of your monitor.
I think that the reason DX8 seems to perform better is that D3DPRESENT_INTERVAL_IMMEDIATE was the default back then, but not in DX9.
Hope this helps,
neneboricua |
|