5/31/2023 0 Comments Yandere simulator iosMake it so that the loop starts IF examplebool is correct. So in every frame computer is looping even though the condition is not met. When you do this its much more bug free and faster.įor exemple when you write color.r, the compiler will autocomplete r to Red. You can have a typing mistake very easily. And the dev does this in almost everywhere. So when you write if(color="Purple"), its very easy for bugs to be born. Your computer has to do the same things over and over again needlessly. Stuff like getcomponent could be done at the start rather than in every single frame. He should rather use: Color c = (Color) (new Random()).Next(0, 3) Ģ-Update() method has unnecessary parts which lower the performance by a lot Right now his code looks like: if (c = Color.Red)Ĭonsole.WriteLine("The color is unknown.") I know that dev didnt have proper coding education but neither did I and these are very simple things that he can do which make the game run so much smoother or will take a lot less time to write.ġ- Switch statements rather than else ifs
0 Comments
Leave a Reply. |