let's say that I have a big main class with a lot of variables, subclasses, etc... in it. Like "IngameScreen"
What if this class is passed as a parameter very often for each frames ? For example there is a "playSound" function in it so every entity need to have this class injected to make a sound.
Does that affects performance ? Or is it something like "it's just a pointer so it costs pretty much nothing" ?
The language is Kotlin