?Hey!
?So for the past month in a half I have been working on optimizing it because the FPS was quite low even on my High-Spec PC. I've used a few techniques like occlusion culling but I've had an idea which I couldn't really google because I didn't know how to define it in short words.
?Here is what I thought of doing:
?So when you have an if statement and it checks multiple things, let's say checks if value 1 is equal to 10 and values 2 is equal to 13. So it's checking 2 things and thus it's using more data, not much more but imagine it on hundreds or even thousands of if statements that check for 2 or more things. So what I've thought of is checking only if value 1 is equal to 10 and in it another if statement, so a nested one, checks if value 2 is equal to 13, so it wont look at the nested if statement until value 1 is equal to 10 thus ever so slightly increasing performance. And again this doesn't eat up performance that much but I have a lot of if statements that check for more than 5 things. I'm not sure if anyone does this and I've only been working with computers for 3 years now and didn't know much 'bout them till about a year ago and I wasn't that good at coding so I don't know how much this will increase performance or if it will actually do something with the performance so please tell me your opinion on this.
Thank you for reading :)
PS: I'm sorry for the title being so undescriptive but I didn't want to put "Game Optimization Theory" or something like that because maybe people actually do this and I didn't know about it.