游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4340|回复: 7

???direct?present??????20NS???

[复制链接]

30

主题

276

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
发表于 2003-9-26 18:49:00 | 显示全部楼层 |阅读模式
?????????????????????
????????????PEEKMESSAGE??????????present
?WINDOW?????????20ns????????c1800+fx5200???present?????50FS ?? ????
?????DEVICE????D9 SDK?TUL?????????????????????????????????????SDK?????????
??? ????? SWAPCHAIN????? ?????D9???????? ???????????????3??????????????/?

90

主题

797

帖子

833

积分

高级会员

????

Rank: 4

积分
833
QQ
发表于 2003-9-26 22:27:00 | 显示全部楼层

Re:???direct?present??????20NS???

????????????????????fps???
????????????

30

主题

276

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
 楼主| 发表于 2003-9-27 08:48:00 | 显示全部楼层

Re:???direct?present??????20NS???

???????50FS?????????
??????????????
gettickcount
present
gettickcount
?????????????????????PRESENT?????
???presnet?????????
???C1800+FX5200??present???20ns??
???????????????????
??
gettickcount
10?present
gettickcount
??????200NS???
?????????????????DEBUG??DXRUNTIME???????????????DX?????????XXX??????????????FS???????
?????366???????????????366?????present FS?????20??????????????????????????????????????????????????????????????COPY????????????????????????????????????
????U?????????????????

30

主题

276

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
 楼主| 发表于 2003-9-27 13:57:00 | 显示全部楼层

Re:???direct?present??????20NS???

??????????? ??????
????????????????????????????????????????????

???????????????????????????tul??(????????????????
???????????????????????????????????

??????????
????????????
???????
????????????
????????????????????

????????????????????????present???????????????
?????????????????????????????????????????????
?????????????????????????????????????

???????????????

??????????renderloop?????????????????
????????????
???????
????????????
????????????????
???renderloop????????present?,??
????????????
???????
???????
???????
????????????
?????????????????ns)

?????renderloop???????????????????????????????????????
????present??????????
???present 0 0 0 0 0 0 0 16 0 0  0 0 0 0 0 0 0 16 15 0 0 0 0 32 0 0 0 0 0 0 16 0 0 0
??present ????????????????????????????????????????????????????
?????present??????????????????present??????????
?????present????0 0 0 0 0 0 0 16 0 0  0 0 0 0 0 0 0 16 15 0 0 0 0 15 0 0 0 0 0 0 16 0 0 0

????????????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????????

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????release?????????????????????
??????????????????????????

90

主题

797

帖子

833

积分

高级会员

????

Rank: 4

积分
833
QQ
发表于 2003-9-27 14:41:00 | 显示全部楼层

Re:???direct?present??????20NS???

??fps????????tune????????????????
???????????

30

主题

276

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
 楼主| 发表于 2003-9-29 13:27:00 | 显示全部楼层

Re:???direct?present??????20NS???

????????????????????D8???????????50FPS ?800FPS?????????????direct ? DEBUG RUNTIME ???????????????50 ?800??????????~?????????~~~~~?????????????10?present??????FS? ??????????????????????????D9?????????MESH???????????????????????????????????????????????

30

主题

276

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
 楼主| 发表于 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 &quotresentationInterval" 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

30

主题

276

帖子

276

积分

中级会员

Rank: 3Rank: 3

积分
276
 楼主| 发表于 2003-9-29 13:46:00 | 显示全部楼层

Re:???direct?present??????20NS???

The system timer runs at approximately 10ms.
Windows Me/98/95: The system timer runs at approximately 55ms.
Windows NT 3.1: The system timer runs at approximately 16ms.

???????????
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-31 23:16

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表