I just started learning opengl and writing a first person shooter but I'm getting horrible framerates when I draw 5000 cubes. So now I'm attempting to perform occlusion and culling using an octree. What I'm confused about is where to cast the rays from. Do I only cast them from the fustrum near plane? It seems like I would miss part of the fustrum that expands.任何帮助都将受到赞赏。

有帮助吗?

解决方案

如果5000立方体已经给出了不良的帧速率,则应考虑更改渲染立方体的方式。

我想提供更多帮助,但我不确定您在做什么。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top