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
Firstly thanks for this beautiful game engine. I switched from 3.5.1 to 4.0 and trying to use surface tool in a parallel for. In 3.5.1 i was successful using it for creating runtime meshes. However it seems to crash in 4.0. Also intersecting a ray in a thread throws errors in debug too. Is this intended or am i missing something? I have included a sample project.
Thanks in advance.
Steps to reproduce
Create a simple Node3D scene.
Add a Camera3D and a StaticBody3D in scene.
Attach a C# script to StaticBody3D.
Try to generate a mesh inside _Process function via a function using Surface Tool with Parallel.For
In case anyone wonders;
I slightly modified my code, moving surface tool out of any parallel or threads. However, reaching the stateSpace in parallel was still problematic, crashing the engine. I placed mutexes where necessarry. Problem seems to be solved.
Is there any way to make local copies of the stateSpace so that threads can use?
Godot version
4.0 release candidate 1
System information
Windows 10, Vulkan Rendering, Radeon RX 6600
Issue description
Hello,
Firstly thanks for this beautiful game engine. I switched from 3.5.1 to 4.0 and trying to use surface tool in a parallel for. In 3.5.1 i was successful using it for creating runtime meshes. However it seems to crash in 4.0. Also intersecting a ray in a thread throws errors in debug too. Is this intended or am i missing something? I have included a sample project.
Thanks in advance.
Steps to reproduce
Create a simple Node3D scene.
Add a Camera3D and a StaticBody3D in scene.
Attach a C# script to StaticBody3D.
Try to generate a mesh inside _Process function via a function using Surface Tool with Parallel.For
Minimal reproduction project
sample.zip
The text was updated successfully, but these errors were encountered: