Operating System
What feature would you like to be added?
This is related to #3402. Now Ebitengine uses a mutext at internal/ui package, but we should be able to reduce them. A mutex is useful but quite risky as this can cause deadlocks if the usage is wrong.
Let's check the current usage and reduce them if possible. Especially, a member variables for initial values should not have to use a mutex. Instead, we can use atomic values.
Why is this needed?
To avoid potential deadlocks.
Operating System
What feature would you like to be added?
This is related to #3402. Now Ebitengine uses a mutext at
internal/uipackage, but we should be able to reduce them. A mutex is useful but quite risky as this can cause deadlocks if the usage is wrong.Let's check the current usage and reduce them if possible. Especially, a member variables for initial values should not have to use a mutex. Instead, we can use atomic values.
Why is this needed?
To avoid potential deadlocks.