Can I configure Flecs to never use Main thread for systems? #1041
-
Because I don't want to block main thread. |
Beta Was this translation helpful? Give feedback.
Answered by
SanderMertens
Sep 12, 2023
Replies: 1 comment
-
You can call Note though that the API is not inherently thread safe, so while a world is progressing you should not try to read or write to it from other threads. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
trsh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can call
world.progress()
in a thread that's not the main thread!Note though that the API is not inherently thread safe, so while a world is progressing you should not try to read or write to it from other threads.