Hello! My couple of questions:
1. I am making a fairly large game and gradually the number of global variables becomes big (about 50). Not all of them are used frequently. Therefore, I began to think, or maybe it is worth taking out the most unimportant of them, for example, in the Dictionary and accessing them through it? This is of course not so convenient, but I read articles on the Internet and many people say that it is better to avoid using global variables unnecessarily. Will reducing their number by 10-20, affect performance, or is it all too insignificant?
2. Is it true that if I enable the "Static" parameter for a Global Variable which will not change, this will increase performance?
I would like to know the opinion of experts!) Have a nice day everyone! Thanks.