HungryProton / scatter

Godot engine addon to randomly fill an area with props or other scenes
MIT License
2.11k stars 94 forks source link

Slow to update #161

Open TokisanGames opened 1 year ago

TokisanGames commented 1 year ago

Commit 5ca161172ad29a79db5c1fac2ea40cc521550581

I just updated the latest scatter w/ GD4.1.1 and it is slow to update. Previously you could move any node around and the objects would continuously snap to the collider. Now when moved, the objects hover while the orange spiny thing cycles, then after 1-4s the objects snap to the ground.

This occurs on terrain3d, regular meshes, and even in your demo. Your 500 rocks update quickly, but maybe not as quick as before. Your 14 trees however take about 3-4 seconds! All render modes are the same speed. "copy mode" is the worst because the trees disappear as soon as you move the gizmo and don't reappear for a few seconds. The other two modes keep the objects visible.

HungryProton commented 1 year ago

Maybe a recent update broke something. I suspect a full rebuild is triggered multiple times instead of once.

There are several things that need optimization, I'll make a dedicated performance patch once I find a proper way to profile the add-on.

mflux commented 12 months ago

Just wanted to note I recently started a project on Godot, wanted to add lots of foliage, and tried Proton Scatter. After making a small forest, the scene just takes a long time to load, made working with the engine unresponsive, takes a while to startup a scene, etc.

TokisanGames commented 12 months ago

This is still an issue in the latest release ca624412c657d469147b4ce464cee290df738a40. The orange circle pops up every time you move scattershapes or the scatter node. Even in your demo, it's bad, esp the trees.

Slluxx commented 9 months ago

Whats the current status on this? I personally feel like i have the same issue.

I thought its just my hardware being bad. Getting 80 fps on a lush scene with the default grass probably is due to my 750ti.