Hello there, the Eldars of Unity Community,
After a year of coding, now I have enough experience but if you know
more, you realise you need to know alot more so I have few questions:
-
I use Javascript and I work on IOS so I need performance, do I have to use C++ in some of the calculations to improve the performance?
-
I have a lot of coding from previous projects and I want to update them. I know most of the tricks for performance but scripting tricks I am lack of. I have many codes like if(a==b && b==c && c==d && d==e) and it can be changed like if(a==b){if(b==c && c==d && d==e)} so it can be optimised but is this performance optimisation important or is it such a small gain that I do not need to change it?
-
And it would be easier for me to use if statements alot but if I work on them I can make some shorter with extra effort and smarter coding, I had some ugly coding at past but the performance will change in a way that I would care? Is the if statement very fast?, in this way I mean there are some crazy expensive stuff like FindObject, in compare with those, is if statement expensive in this means or not, like for example is it 10 times cheaper than FindObject or 100 times cheaper? I would calculate my performance needs better if I would have some data, some stuff you cannot learn efficiently from profile, I hope you got what I mean.
Thank you community, sorry for my English and hope for an answer from a person with exact knowledge.