You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version:
OS: Solus x86_64 (Kernel 5.6.19-159.current)
CPU: Intel i5-7400
GPU: NVIDIA GeForce GTX 1050
Backend: GLES3
Issue description:
I am creating a chunk loader. Calling scene.instance() is slow and causes a noticeable lagging even for simple scenes.
I think the best solution would be the possibility to split instancing over multiple frames. PackedScene could have a
method instance_interactive() that works in a similar way as ResourceLoader.load_interactive().
I also tried instancing the scene in a thread but ran into issue #36793.
Steps to reproduce:
Instance a scene that contains a few primitives and materials, for example with this code:
Pressing ui_cancel causes a small lag the first time the scene is instanced, but not for subsequent calls.
Minimal reproduction project:
Run the attached project and move around with WASD. Press Escape (or any other ui_cancel action) to instance a scene while moving to notice the lag.
Check the debug output to see the time it took to instance the scene. On my computer it takes 40ms to instance the scene located at ./wip/chunks/Complex.tscn.
Godot version:
v3.2.3.stable.official
OS/device including version:
OS: Solus x86_64 (Kernel 5.6.19-159.current)
CPU: Intel i5-7400
GPU: NVIDIA GeForce GTX 1050
Backend: GLES3
Issue description:
I am creating a chunk loader. Calling
scene.instance()
is slow and causes a noticeable lagging even for simple scenes.I think the best solution would be the possibility to split instancing over multiple frames.
PackedScene
could have amethod
instance_interactive()
that works in a similar way asResourceLoader.load_interactive()
.I also tried instancing the scene in a thread but ran into issue #36793.
Steps to reproduce:
Instance a scene that contains a few primitives and materials, for example with this code:
Pressing
ui_cancel
causes a small lag the first time the scene is instanced, but not for subsequent calls.Minimal reproduction project:
Run the attached project and move around with WASD. Press
Escape
(or any otherui_cancel
action) to instance a scene while moving to notice the lag.Check the debug output to see the time it took to instance the scene. On my computer it takes 40ms to instance the scene located at
./wip/chunks/Complex.tscn
.Project: bug.zip
The text was updated successfully, but these errors were encountered: