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
{{ message }}
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.
The AddGameSystem call specifies a ProfilingKey as the KeyValuePair.Value while the Remove call specifies null as the value; therefore the item doesn't get removed.
Also, according to this answer, "[A KeyValuePair] is a struct. This means it uses the default value equality. This simply compares the values of the fields to test for equality." So, this is almost certainly a bug.
Lastly,updateableGameSystems is a normal C# list instead of a seemingly more fitting dictionary?
It should be a list since it is iterated over a lot (iterating over lists performs better than dictionaries). The solution is to iterate over the items of the list in the Remove method and check for KeyValuePair.Key equality like it’s done elsewhere in my opinion.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The AddGameSystem call specifies a ProfilingKey as the KeyValuePair.Value while the Remove call specifies null as the value; therefore the item doesn't get removed.
xenko/sources/engine/SiliconStudio.Xenko.Games/GameSystemCollection.cs
Line 331 in 6fca455
xenko/sources/engine/SiliconStudio.Xenko.Games/GameSystemCollection.cs
Line 343 in 6fca455
The text was updated successfully, but these errors were encountered: