g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.8k stars 295 forks source link

Render starts to lag when I draw a lot of objects #269

Open fwflunky opened 2 years ago

fwflunky commented 2 years ago

Render starts to lag when I draw a lot of objects. In Unity, you can choose to render only objects visible by the camera. Is there the same option in g3n?

gedw99 commented 2 years ago

you mean this ? https://en.wikipedia.org/wiki/Viewing_frustum

danaugrs commented 2 years ago

G3N has view-frustum culling enabled by default. You might want to tune the near and far planes to achieve the desired performance.