richardbiely / Voxelmetric

An efficient voxel framework for Unity3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IsChunkInViewFrustum..

XeonG opened this issue · comments

commented

just having it off shaved 2-3ms off per frame, and gained like 100fps

commented

avg is like 4ms on LoadChunksSimple.Update() when idle.. (picture is with deep profile on so ms is out of whack).. but with frustum on, its around 6ms.

Thanks to these frustum checks, it's possible to generate chunks on-demand (when they first become visible).
If you don't need the feature, turn "Use frustum culling" off on your LoadChunksSimple script.