Closed edoardo849 closed 11 months ago
When I build the game using the -race flag:
-race
go build -race main.go
and run it on a different goroutine (I'm using a server to add entities to the World) the compiler detects race conditions.
This PR adds an RWMutex to the ecs package to sync the state of the world
RWMutex
ecs
world
When I build the game using the
-race
flag:and run it on a different goroutine (I'm using a server to add entities to the World) the compiler detects race conditions.
This PR adds an
RWMutex
to theecs
package to sync the state of theworld