MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CacheNeighbors

Method CacheNeighbors

Source/Engine/Terrain/Terrain.cpp:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void Terrain::CacheNeighbors()
62{
63 PROFILE_CPU();
64 for (int32 pathIndex = 0; pathIndex < _patches.Count(); pathIndex++)
65 {
66 const auto patch = _patches[pathIndex];
67 for (int32 chunkIndex = 0; chunkIndex < Terrain::ChunksCount; chunkIndex++)
68 {
69 patch->Chunks[chunkIndex].CacheNeighbors();
70 }
71 }
72}
73
74void Terrain::UpdateLayerBits()
75{

Callers

nothing calls this directly

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected