@Elisha_Allbright
I'm going to go ahead and say upfront that this is probably the only time I'm going to humor the notion of debating with mystery friends through a third party. I don't mean that in a rude way, and you didn't necessarily do anything wrong by seeking out the opinion of someone that you consider to be knowledgeable about these matters and posting their opinion here.
The primary reason is simply because this forum's multi-quote system doesn't allow me to quote parts of other quotes, so in order to respond to individual points, I've gotta copy and paste each individual part and manually turn it into a quote, which is an inordinate hassle. The other reason is because arguing through a middle-man is not really conducive to a good discussion (IMO). I'll go ahead and do it this time, since your friend already took the time to write all that, but I'm not going to respond to any more, so if your friend feels the need to respond to this and wants me to respond back to their response, then they'll need to come here and post on their own behalf.
Starting off your argument by insinuating that the other person is a beginner is a common means of attempting to elevate your own status in the eyes of other viewers, in order to try to get them to view your words as being more authoritative, and to decrease the status of the other party in the eyes of the viewers, in order to try to devalue their words. It's a common tactic of people who are aware that their own argument is lackluster.
As some people are just naturally condescending, that may not have been your intention... but I'm going to go ahead and formally request that we all try to keep that kind of stuff out of here going forward. If your argument is solid, it will speak for itself, and the posturing should be unnecessary.
What you're neglecting here is the fact that the measurement that shows a factor of 2 or 3 is the measurement of the FPS of the game or the total number of events than can be spawned, etc. In other words, it's measuring the performance of the system as a whole--not of one single function or algorithm. If your FPS gets cut in half, that can be kinda a big deal.
If one single line/function/algorithm is 2 to 3 times slower, that is often negligible in the big picture. Unfortunately, that's not the case here, since the performance of individual pieces of code is is often reduced by a factor way higher than 2 or 3 after being obfuscated. It's the entirety of the code, combined, that is 2 to 3 times slower.
The hot paths are obfuscated as well.
That is being arbitrarily decided by the plugin developer. They're deciding that it performs "good enough" for whatever they've arbitrarily deemed to be normal usage, on whatever type of hardware they have deemed to be normal. The plugins *could* run better on weaker hardware, or they *could* allow the developers to use them more freely in less "normal" scenarios, if they weren't obfuscated.
Certainly, developers have to make those types of decisions. But usually when performance is sacrificed, it's in exchange for more features, or for the sake of more readable/extendable code, ease of development, etc. But in this case, the code is essentially just being run through a shredder and having its performance cut in half right before it reaches the customer's hands. As a customer, knowing that is a bit vexing.
Maybe, for my particular usage, it won't wind up mattering in the end. But knowing that my game maybe *could* run better on weaker hardware (and thus reach a bigger audience), and knowing that the thing that I'm stamping my name on and sharing with the world *could* easily be a little bit better, makes it difficult for me to feel good about obfuscation.
But at the end of the day, my objective in the original thread was not to imply that using obfuscated plugins absolutely will ruin your game. I was moreso attempting to spread awareness of the fact that obfuscation does impact the performance of the code, so that people *could* consider the situation at all. Most people had no idea that obfuscating code had a performance impact, so they were unable to consider it to begin with.
It could just be that I'm dense, but I don't really know exactly what you're going for by showing these numbers. It should be obvious that there will be fewer checks when comparing the results of your plugin (which is specifically designed to reduce checks)... against not using the plugin at all. Are you just trying to show that it's "good enough", even when obfuscated? What I'm more interested in is the fact that unobfuscated version of that plugin would result in an even greater reduction in the number of checks.
Yes, plugins can harm your game's performance. And if you obfuscate those same plugins, they will harm your game's performance even more, which is kinda the whole point here. If your game's performance is already a potentially delicate matter, why would intentionally introducing an additional unnecessary performance penalty ever not be a questionable thing to do?
That's not exactly how it works. You determine whether or not the time complexity of an algorithm is acceptable based on what that algorithm does for you. You're paying a cost, in order to receive something in return. If it gets you from point A to point B at a reasonable cost, then it's an acceptable algorithm. But obfuscation does nothing for you. There is no return. You're taking an algorithm that was already going to get you from point A to B within an acceptable amount of time, and telling it to take several pointless detours along the way, with absolutely no additional gain of any nature. That's not something that I personally consider to be okay.
First I did one experiment (using the obfuscated plugin). Then I did the exact same experiment, where only one thing was changed (using a deobfuscated version of the plugin). That first scenario *is* a control experiment.
It was not misrepresented at all. I made it clear multiple times that the experiment depicted an unrealistic scenario.
There was no need to do that. When only one thing changed between the two experiments, then it's obvious that the thing that changed is what accounted for the difference in render time. In this case, it's that the two decryption functions were no longer being called multiple times each, per every line of code.
I had intended to do a variety of tests, including by obfuscating plugins that were not previously obfuscated. I just didn't get a chance, because the thread got shut down so fast. The reason I elected to do it the opposite way around in my initial tests was to prevent the possibility of people accusing me of skewing the results by intentionally obfuscating the code in a way that is more aggressive that what other plugin makers commonly do. I felt that using a real plugin that was obfuscated by a trusted developer would serve as a more convincing control.
Yeah, honestly, my point was never to say that obfuscated plugins absolutely are going to trash your game. It was moreso just to make people aware that obfuscation *can* be another factor among the many other things that can harm your game's performance, so that people could take that into account when trying to assess their own game's performance.