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:
parent
e88e92d3aa
commit
f27564ec78
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue