Spoctor’s lack of understanding of the most fundamental aspects of comp-sci is embarrassing. Yandere Simulator’s real issue with pathfinding is that pathfinding occurs every single frame. Oh, and by the way, A* is the best pathfinding algorithm we have right now (not counting neural network dark magic), the fact that Spoctor presents it as some sort of deprecated library shows how outrageously terrible his research is. Spoctor didn’t even bother to Google what Unity’s inbuilt pathfinding algorithm was before shitting on Yandere Dev for using the only A* library that was available when he started making Yandere Simulator. In fact, Unity uses A* pathfinding in its inbuilt Unity AI thing, which you can read about in their documentation (excerpt: “A common algorithm to find the path is A* (pronounced “A star”), which is what Unity uses.”). Performance-wise, else-if chains and switch statements are practically identical, and well-structured if-else statements can even be better than switch statements.Not only would this be a waste of time (remember the 20/80 rule), but the fact that Spoctor preaches this so vehemently in his video shows his naivety. Spoctor says that you have to “optimize every single line of code” which is objectively false.Here’s all my issues with Spoctor’s video: Spoctor spent the majority of his video being edgy rather than putting up a competent argument as for why he worshiped switch statements (hint: he shouldn’t, and neither should you). Spoctor’s video is the perfect example of what happens when a person with no fucking clue what they’re talking about decides to school non-technical people on computer science.
#YANDERE SIMULATOR CODE CODE#
“Critiquing” someone’s code for performance, but then only complaining about how the code looks (when it’s fucking decompiled code, so all of the formatting and conditionals are made by the decompiler) and then not even using the Unity profiler is not just incompetent, but actively malicious. This is equally depressing as it is annoying.
#YANDERE SIMULATOR CODE UPDATE#
Update 11/19/20: Since I created this post, Spoctor’s video has skyrocketed to over 1 million views-Basically doubling in view count.
#YANDERE SIMULATOR CODE SIMULATOR#
Spoctor’s popular video titled, “The Horrific Yandere Simulator Coding | A Breakdown”, is one of many videos that perpetuates comp-sci bullshit to unsuspecting non-technical people. The annoying copy-pasted “else if else if else if” spam under every Yandere Simulator-related Reddit thread is mainly the fault of incompetent people spouting bullshit, and speaking of which… Stop masturbating to your microsecond save of using switch statements. Optimizing every single line of code won’t put a dent in the lag caused from unoptimized assets. According to the Unity profiler, most of the lag comes from rendering visible polygons & physics, not code. In the wise words of dyc3, “the compiler is smarter than you”.Īttributing the game’s slowness to else-if chains is absolutely wrong. Switch statements are only better than else-if chains in specific edge cases, otherwise, you can just use whichever looks nicer to you. Let’s get this straight, the performance benefits between using a big ol’ chain of else-ifs and switch statements is negligible at best.Īdditionally, when you export code in Unity, else-if chains are optimized into boolean expressions anyways, which are at the same speed as or faster than switch statements. “For criticism to work, it needs to be true, you fucking idiots.” -Ghandi “Else if else if else if” Bullshit Of course, nobody actually bothers to check if they’re even right, resulting in dumb shit like “else if else if else if” and “stolen assets” to be considered legitimate criticism of the game. For that, I’d recommend this video by dyc3.Ī lot of people love regurgitating the insightful criticism they have of Yandere Simulator. This apparently wasn’t common sense to most people. People who tried to access Osana early got disappointing results because all her code wasn’t even in the build.
So far, it has only been decompiled (pretty well). Yandere Simulator’s source code has not been leaked.Before I go any further, a couple extremely important things to keep in mind: