Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improves paging preloader #3126

Merged
merged 23 commits into from
Sep 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
quadtreeworld.cpp
  • Loading branch information
bosvensson1 committed Sep 26, 2021
commit 4d5a73b8ead4f94a79cf57dd3643d4ec0f246ce5
2 changes: 1 addition & 1 deletion components/terrain/quadtreeworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ void QuadTreeWorld::preload(View *view, const osg::Vec3f &viewPoint, const osg::
{
ViewData::Entry& entry = vd->getEntry(i);

loadRenderingNode(entry, vd, mVertexLodMod, cellWorldSize, grid, mChunkManagers, true, mViewDataMap->getReuseDistance());
loadRenderingNode(entry, vd, mVertexLodMod, cellWorldSize, grid, mChunkManagers, true, std::max(mViewDataMap->getReuseDistance(), std::abs(distanceModifier)));
bosvensson1 marked this conversation as resolved.
Show resolved Hide resolved
if (pass==0) reporter.addProgress(entry.mNode->getSize());
entry.mNode = nullptr; // Clear node lest we break the neighbours search for the next pass
}
Expand Down