What are the performance effects of having multiple references to a single object?
I am writing a script for the videogame Space Engineers. Due to the… interesting nature of the scripting API, making use of static variables causes a memory leak. In order to avoid that, I store variables I’d want to be static as non-static and pass them to classes through their constructor whenever necessary.