Opengl 3ds 如何解决三角形数量太多造成cpu占用率过高?
vc中加载3ds模型,如果是一个简单的模型运行还可以,一旦运行复杂模型,就有可能要绘制上千个三角形,cpu占用率会很高,如何解决这一问题?...
vc中加载3ds模型,如果是一个简单的模型运行还可以,一旦运行复杂模型,就有可能要绘制上千个三角形,cpu占用率会很高,如何解决这一问题?
展开
展开全部
glBegin(GL_TRIANGLE_STRIP);
use that to draw triangle. thats the fastest way.
only thousands of triangles shouldnt be slow btw.
another thing is not to define material parameter to each vertex. it would kill the scene. hope you didn't do that:)
use that to draw triangle. thats the fastest way.
only thousands of triangles shouldnt be slow btw.
another thing is not to define material parameter to each vertex. it would kill the scene. hope you didn't do that:)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询