refactor(render): cull terrain by walk in-view cells
This commit is contained in:
parent
98d2d43fdc
commit
837a33baff
3 changed files with 54 additions and 14 deletions
|
|
@ -1349,7 +1349,15 @@ public sealed class RetailPViewRenderer
|
|||
Walk.WalkFrameDriver driver)
|
||||
{
|
||||
var (frame, encoder) = passes.RequireWalkSubmission();
|
||||
driver.Replay(frame, encoder);
|
||||
passes.SetWalkTerrainInViewLandcells(driver.VisitedLandscapeCellIds);
|
||||
try
|
||||
{
|
||||
driver.Replay(frame, encoder);
|
||||
}
|
||||
finally
|
||||
{
|
||||
passes.SetWalkTerrainInViewLandcells(null);
|
||||
}
|
||||
|
||||
// Landscape-stage static-owner particles (candles, the cathedral
|
||||
// falls) submit AT THEIR OWN WALK TURNS inside Replay
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue