pokepetter / ursina

A game engine powered by python and panda3d.

Home Page:https://pokepetter.github.io/ursina/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render distance performance-oriented

tkbstudios opened this issue · comments

Hello, I am working on project TI-TREK, which is essentially a space game, I have a map full with planets, around 8K objects, I've implemented render distance using: camera.clip_plane_far = 2000 which displays around 5 planets but it lags very bad and it shows 60FPS.. any way to optimize it?

You should not have a lot of visible entities, only a few. 8K is way too many. You should merge the models together so the can get rendered in one (or a few) draw calls instead of 8000. It's also a possibility you're CPU-bound and not GPU-bound.