I have a bunch of varaibles to adjust various aspects of my game and debuggers. I put them all on the game instance BP.
When i access one of these varaibles, which is the best way to do this? What about performance? I access them a lot.
I was dragging of the game instance ref (which was promoted to varaible) and getting the varaible. This happens a lot and many BP use this.
Then i decided to make new varaibles on each BP. At begin play the game instance varaibles set the BP varaibles that are needed. Now when the varaible is needed the BP already has it rather than getting it from the game instance each time.
I would not worry about accessing it, I’d worry more about what you do with the data you get. You can single-handedly negate a month of diligent optimisation by placing a Ticking BP Loop where stuff should have been Event Driven in the first place…
I have no idea what subsystems are. I will do some research and self learning.
Everytime the varaibles are accessed it is through an event, not ticked.
So, it does not really matter how i access the varaibles? Accessing the game instance to get a varaible is the same as accessing a varaibles on a “self” BP?