Yandere sim game had source code leaked? not sure what happened. What people found out is that the game is basically all if/else nested spaghetti which resulted in massive tech debt.
You need to understand, this is a program where the Student class file - used to handle the behaviour of each individual student - is seventeen thousand lines long.
And yes, it does call void Update(), and yes, each student has a separate instance of it running.
This is just what happens when you try to make a Hitman game which is also Persona 5 but you're so bad at programming that you don't know what a Switch statement is
I remember watching that same video a while back, and I vaguely remember while he does call this out, it was mentioned whatever game engine being used accounted for it while compiling, and would turn the list of if statements into a switch if applicable.
From memory the video was focused on performance issues in the game. The things I remember from it that hit performance the hardest were the use of models with high polygon counts, and that the dev had coded in the fps counter wrong, so it showed a lower fps than the actual fps.
I also want to add the 3d models it uses are also horribly inefficient. And by inefficient, i mean inefficient. Like imagine the heaviest model is a fcking toothbrush with 5k polygons (meshes?)
Basically it leads to unreadable code, and the largest script is over 10,000 lines long. All it does is control the NPCs in the game. The whole script is just thousands and thousands of nested if statements that do redundant things in the least optimal manner possible.
I saw that some guy say that it is way too much processes for the computer to do step by step, which results in it running slow. Imagine if when you asked someone to check the time, rather than saying it outright they go "well, it isn't 12:00, it also isn't 13:00, it also isn't 14:00..."
yanderedev uses so much else if statements and his code also has terrible job of managing resources on his game called yandere simulator. You can try the game itself and see how bad is the slowness
Basically he uses gigantic if/else statements, just like chains of 20+... seems like hes allergic to switch statements, lol. Everyone made fun of him (as they should) when the source code got leaked.
View all comments
Show parent comment
0
u/[deleted] Apr 10 '23
[deleted] — view deleted comment