开发者

does my opengl es draw(); call draw objects not currently seen on the screen?

开发者 https://www.devze.com 2023-04-07 03:22 出处:网络
In Android. If im drawing objects off screen, it would be a big performance boost to disable these obj开发者_Python百科ects assuming they arent already disabled from being drawn when off screen.I assu

In Android. If im drawing objects off screen, it would be a big performance boost to disable these obj开发者_Python百科ects assuming they arent already disabled from being drawn when off screen.


I assume your question is how to cool the invisible objects. It depends on whether you're using 2d or 3d scene. In 2d it's very simple: everything outside the screen rectangle is culled. While in 3d it is very complex problem and there are tons of different techniques like bsp trees or portal rendering. The key word to google is "object culling".

0

精彩评论

暂无评论...
验证码 换一张
取 消