胡说八道

学而不思则罔,思而不学则殆

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  132 随笔 :: 0 文章 :: 58 评论 :: 1 Trackbacks
    在DirectX9的文档里面发现一篇文章(Accurately Profiling Direct3D API Calls),讲述了D3D和驱动对于Command Buffer的处理。澄清了一些原来疑惑的地方。

    D3D和驱动运行在两个不同的模式下user mode和kernel mode,也就是说D3D传递Command Buffer到驱动和真正执行返回需要在这两个模式切换,这个是一个比较耗时的操作。在下面的情况下会发生这样的切换:
    When one of the lock methods (IDirect3DVertexBuffer9::Lock) is called on a vertex buffer, index buffer, or texture (under certain conditions with certain flags).
    When a device or vertex buffer, index buffer, or texture is created.
    When a device or vertex buffer, index buffer, or texture is destroyed by the last release.
    When IDirect3DDevice9::ValidateDevice is called.
    When IDirect3DDevice9::Present is called.
    When the command buffer fills up.
    When IDirect3DQuery9::GetData is called with D3DGETDATA_FLUSH.
posted on 2004-12-29 12:29 胡说八道 阅读(283) 评论(0)  编辑 收藏 所属分类: 杂项

标题  
姓名  
主页
Email (只有博主才能看到) 
验证码 *  看不清,换一张
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
 
另存  打印
最新IT新闻:
· 56被关一月 危机的是整个视频业
· 李开复:中文搜索是谷歌战略核心
· 《星际争霸2》新图:黑暗圣堂武士Zeratul
· FriendFeed介绍
· 微软在台北发布新色鼠标产品