1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 22:09:42 +00:00

Actually use the plane distances we just computed

We don't get any of the speedup if we don't do this.

We also forget about any objects nearer the camera than the previous value except the groundcover we're just about to deal with.

Fixes https://gitlab.com/OpenMW/openmw/-/issues/7844
This commit is contained in:
AnyOldName3 2024-02-22 00:16:41 +00:00
parent e88e92d3aa
commit f27564ec78

View file

@ -95,6 +95,8 @@ namespace MWRender
{
// Other objects are likely cheaper and should let us skip all but a few groundcover instances
cullVisitor.computeNearPlane();
computedZNear = cullVisitor.getCalculatedNearPlane();
computedZFar = cullVisitor.getCalculatedFarPlane();
if (dNear < computedZNear)
{