Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

Does entitas support multithreading ?

Open genaray opened this issue 4 years ago • 3 comments

Hi,

im looking for an well designed c# ecs which supports multithreading. Its for my game server and i dont want to use unity itself as a server.

So i found entitas and wanna know if it already supports multithreading somehow. Is there already a build in multithreading/jobs/scheduling system for entitas ?

Cheers

genaray avatar Oct 02 '21 12:10 genaray

Entitas is plain C# code and not bound by UnityEngine api, and thus can run in a separate thread.

For instance you can run features/systems that belong to a specific context in a separate thread, while your client/render features/systems that rely on UnityEngine run on the main thread

Guendeli avatar Oct 11 '21 13:10 Guendeli

[URL=https://runaway3d.com/]run 3[/URL] I really like it but I haven't studied it as well as you

eddy1001-555 avatar Feb 18 '22 04:02 eddy1001-555

runaway3d.com/]run 3[/URL] I really like it but I haven't studied it as well as you

eddy1001-555 avatar Feb 18 '22 04:02 eddy1001-555

@genaray The core of Entitas uses System.Collections.Generic and is not thread-safe in general. However, within systems you can do multithreading, see

Ignore the if (exception != null) from the TestJobSystem, as it's only used fo the purpose of an unit test

sschmid avatar Aug 25 '22 21:08 sschmid