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
Golang is a language that have a good support for concurrency and multithreading. I'm testing some stuff, as always, but I'm hit at fatal error: concurrent map read and map write.
Seems that Engo isn't capable to support multi-thread by default. There's a lot of map without any mutex:
I think supporting concurrency in systems would be an amazing thing! There are a few issues that would need to be worked through, mostly that openGL calls MUST be done on the main thread, the operating system requires it. So the render system or any system that does drawing would have to be guaranteed somehow to run on the main thread.
Golang is a language that have a good support for concurrency and multithreading. I'm testing some stuff, as always, but I'm hit at
fatal error: concurrent map read and map write
.Seems that Engo isn't capable to support multi-thread by default. There's a lot of map without any mutex:
engo/common/render.go
Lines 277 to 281 in d2790d2
engo/common/spritesheet.go
Lines 113 to 127 in d2790d2
That error can be triggered with anything like:
...
I'm thinking about create a queued channel, intended to receive and then calls Engo.
There's any plan to support concurrency?
The text was updated successfully, but these errors were encountered: