|
发表于 2010-9-3 00:36:00
|
显示全部楼层
Re:为啥opengl画一个三角形那么快?
也许和驱动有关吧。
在《3D Game Engine Programming》中提到这点时是这么说的:
Direct3D is horrible at rendering small batches of triangles in one call. Therefore, rendering a thousand triangles in one call is lightning fast but rendering with a thousand calls while rendering a single triangle with each call is very slow.
OpenGL does a much better job rendering single triangles. This is good because it makes life easier for the programmer by skipping the need to batch data together.
也不知道是不是这么回事... |
|