胡说八道

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

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
      在显卡的顶点处理模块内有两种Vertex Cache,一种是pre Vertex Cache,另一种post Vertex Cache.

       对于第一种pre Vertex Cache,其实就是普通的memory cache,工作原理也比较简单,对于这个cache的优化就是保持相关性.而第二种cache,保存的是处理完了的Vertex数据,采用index来索引.所以想要这部分cache发挥作用,必须使用index的顶点数据.

       在XBOX中,一共有保存24个vertex数据的post Vertex Cache.这种cache的算法是FIFO的(PC上的也是一样的).所以三角形索引的排列就显得很重要了.

       在DX9 Update (Summer 2004)的文档中终于出现了对于post Vertex Cache和index关系的描述 "Even more importantly, using an index buffer allows the adapter to store vertices in a vertex cache; if the primitive being drawn contains a recently-used vertex, that vertex can be fetched from the cache instead of reading it from the vertex buffer, which results in a big performance increase.",在以前的文档中找不到关于post Vertex Cache和index的关系,为此还和别人争论过这个.

posted on 2004-12-29 11:25  胡说八道  阅读(697)  评论(0)    收藏  举报