Obfuscation derailment thread

The discussion in the "What's your opinion on VisuStella plugins?" thread started to go off the rails a bit, and we were warned to keep things on topic. However, somebody then asked me a question that I feel deserves a response, yet I don't want to derail the other thread any further, so I guess it's okay to start a new thread in order to continue the discussion?

Here goes:

That being said, @Arthran please keep the work on tests so potential consumers can make a more conscious buying choice. But other than the impact on performance, I think you should focus on getting the developers to disclose that and present the performance numbers themselves, since they have access to the unobfuscated code, so we can compare data and reach our own conclusions. Transparency, basically. It's your goal, right?
That certainly was one of my goals when I made a thread about my tests last year. I had intended to conduct more tests, and I was hoping that other people (including the developers) would also chime in with their own objective empirical data on the matter.

Unfortunately, the thread got shut down within a matter of hours, before any such things could happen. I waited a day to let everyone cool off, and then I politely inquired to administration about whether or not it would be possible to have the thread re-opened, but I didn't receive a response. I waited about 10 more days, and then asked about it again, and still received no response.

I felt that it probably wouldn't be okay to simply open a new thread about it without permission (especially right away), since to me, it seemed like that would be akin to openly disrespecting the authority of the person who had closed the initial thread. And since I was unable to get a response to my inquiries about the matter, and I wasn't aware of any other recourse at my disposal to get the matter resolved, I kinda just had to let the topic die.

That, and I had kinda lost hope that an objective, data-driven discussion on the matter would even be possible, since the two VisuStella members who did respond to that thread seemed a bit more interested in discussing my character than in presenting any form of actual counter-data. IIRC, within the first hour or so of the discussion, they wrongfully accused me of violating a ToS, they wrongfully accused me of software piracy (and I actually wound up having to prove my innocence on this matter to avoid being banned from the forums), they accused me of acting in bad taste, they accused me of acting out of malice, they insinuated that I had intentions of plagiarism, and they repeatedly insinuated that I am an unsavory person in general. Since their first course of action was to attempt to discredit me as a human being, rather than to present their own data, I decided that it would probably be futile to attempt to have any further discussions with them about the matter.

Truthfully, when I had first made the post, the optimistic side of me was kinda hoping that maybe they actually just weren't aware of the performance ramifications of their obfuscation technique, and that maybe my data would encourage them to give some serious consideration to adopting a technique that is a bit more conscious of their customers' best interests. And the more realistic side of me figured that, at the very least, it would be good to raise awareness about the issue so that people can make an informed decision about their usage of the products.

Between the chagrin of having my topic (which I worked hard on) closed almost immediately, the frustration of not being able to discuss that matter with anyone, and the accusatory and dismissive manner in which VisuStella responded to the thread... I guess I felt a bit disillusioned, and just sort of moved on. That, and I'd kinda lost my steam during the couple of weeks that I was waiting around in hopes of my thread getting re-opened.

If anyone wants to present a problem, simply elaborate a suite of tests with detailed methodology and publish it on another topic, and if someone doesn't agree, present a well-reasoned critique, suggest a better methodology, do the tests themselves and draw different conclusions. We need more action, more data, more analysis and science, and fewer empty words around.
I agree with you. However, it takes a lot of time and effort to create tests, collect and organize data, write and format a lengthy post about it, etc. If your thread happens to get shut down, all that work kinda gets thrown in the bin. Since the moderation policy when a couple of people veer off topic is apparently to close the entire thread (rather than to punish the specific offenders), if the problem that you're trying to present is of a potentially contentious nature, I guess it's almost guaranteed that your thread is going to get closed, as there's always going to be those one or two people who get a bit too heated.

*edit* I didn't realize that the original thread that I was trying to branch off from actually got closed, as I was already well into writing this before that happened. I just wanna say that my comment regarding thread closures was not in reference to that situation.
First of all; You're my hero. I noticed you've been a bit more active lately, was just gonna post that as a status to you, but since I'm here, I'll just say it now.

Second; after the original thread had got shut down, I had also reached out to you about maybe taking the contents of it and making a video out of it. That sort of fell by the wayside as I was still trying to figure out the structure for my own youtube channel. The recent discussion around this however, has revitalized my interest in taking the contents of your findings and - at the very least - preserving the information in a video format because it's definitely a lot of useful information and was clearly a lot of hard work that you had done. I think it should be more visible and more easily sharable.
I'll work on how I want to structure that video over the next week, but I hope in the mean time you are able to share more information here - assuming this thread also doesn't get shut down.
Interesting. We really need a place outside of this forum to document this type of thing if the topics talking about them keep getting derailed by arguing and then get locked.
Moderator note: Just gonna say, if this turns into a Visustella bashing thread or a VS contributors bashing thread, like the other ones have, it'll be locked immediately

As long as the conversation stays on obfuscation and there are no nasty/accusatory comments towards any developer/pack, it'll be allowed to continue.
Some disclaimers:

@Arthran
Oh my, if the objective was answering, I would prefer a PM instead. But once I am cited in a public space, I hope my right to answer is warranted. I don't want anyone to get me wrong by mistake or by purpose, so I want to be crystal clear here.

Other than that, I really hope this other thread doesn't go the way of the dodo either. The 3rd in a row...

And thanks @Shaz for keeping an eye on it, by the way. Those themes are quite complicated to deal with, so I feel more comfortable knowing someone will prevent the excesses.

Let's proceed.

First of all, look, I understand how important the job you do is, even if unpopular (some sanity-check is always unpopular by the way). Well, you're basically coming to the house of the devs, these forums, and pointing fingers and complaining, even if valid and respectful criticism, you must've known that some people would act in the heat of the moment.

So, we must always know how to carefully choose our words, and that's not a criticism of anything you said in general or specific, just a rule of thumb. As I said before, I have my discrepancies with the philosophy of obfuscating the code for several reasons, yet I can understand what they meant by doing so.Therefore, I won't go publicly antagonizing them.

Second, I think you might have valuable information there, but the more valuable the info is, the more responsible we must be with it. As I said, you should focus more on communication, maybe directly with the devs themselves. At least try that, before coming publicly. The results you should present should be as clear as possible, as well as your intentions, and then you should present your method well and objective measurements. Leave the conclusions to the reader.

You don't need to be sensationalist (I'm not insinuing that was your intention, but maybe that was the reason the first thread was closed in the first place), all that matters is the data. We need more numbers, %s, pictures & graphs to compare data, we need a robust round of tests to catch potential errors and tolerances. I guess you understand what I'm getting at.

So once you have got the data, make an article-like PDF, do some power point slides to summarize, heck, maybe even do a Youtube video on the matter, do all the disclaimers and considerations before, because people *do want* to understand things wrong by purpose, sometimes, so they can find someone to antagonize and pick as nemesis. So, reduce the chances of that, publishing in other spaces where it might get some visibility and traction, like Twitter, Youtube, Reddit, whatever.

Obviously, if contact with the devs fails. You should at least give a try to them to respond fairly (in private) about the matter before publishing anything and, if it's the case, also publish their take on it. If they fail to respond fairly to the inquiry, you just notify this fact on your prompt.

Last but not least, since you're still around, and there's not a lot of bad will towards you yet, use this space responsibly, do as I said if you find it reasonable, and bring the discussion as it should be: Clear and factual. It saddens me to know that you've been treated poorly in vista of what you've done to this community, but at the same time, we don't have more time for drama. Stick to the facts, there's always someone that will support you if you do so.

I'll be waiting for your next endeavours, and please forgive who was mean to you, and ask for forgiveness to the ones you were. Let's do anything we can to keep things civil here.

Have a great day,
Well, you're basically coming to the house of the devs, these forums
I don't think that's true. As far as I know, the only user on these forums who's a part of VisuStella is Archeia, and she doesn't exactly engage on a regular basis. Yanfly has an account, but that reply in Arthran's other thread was the first post in years, aside from a brief period of responding to some questions in a dedicated VisuStella FAQ thread.

I'm not saying any of that is a bad thing, there's no requirement that anyone use this specific Web site, but it's much more "a house" for Arthran and other regular posters than it is for anyone on the VisuStella team.

As I said, you should focus more on communication, maybe directly with the devs themselves. At least try that, before coming publicly...You should at least give a try to them to respond fairly (in private) about the matter before publishing anything
I disagree with that, also. If one has a product available to the public, one should expect and be tolerant of public scrutiny. What you said might hold water as a respectful gesture if it were directed at a specific individual, but Arthran's thread wasn't.

We're talking about computer code, here. It's not a personal popularity contest, it's not something that has results with a variety of interpretations, it runs the way it runs. Saying this code performs worse with obfuscation is no different from telling someone they have a bug in some code they wrote (which I have both said and received many times).

The results you should present should be as clear as possible, as well as your intentions
I think they were. I even read through that thread again this morning after this was posted, and Arthran was so deliberate in being vocally respectful and civil. I don't see how anyone could misconstrue her (I presume? from the avatar of a girl from Lucky Star?) intentions unless they wanted to.

Last but not least, since you're still around, and there's not a lot of bad will towards you yet, use this space responsibly...we don't have more time for drama. Stick to the facts
That's exactly what's been done. I haven't seen a post from Arthran that had or encouraged drama, or wasn't factual. Again, she's had entire sections of posts encouraging other posters to adhere to a topic or to follow the instructions of the forum moderators.

That's literally why this entire thread was started.
@ATT_Turan
My sole objective was to bring some more cohesion and care to the point made.

- Do I think that the point brought was wrong? No.
- Do I think that had any malice or ill intent on the way it was presented? Again, no.

All I said is: "beware that we're stepping on eggs here". No margin should be left to interpretation other than the conclusion presented by the data.

- Extra precaution would have avoided this fumbly mess? Probably no, but the less reason we have to avoid a nuclear assault coming back, the better.

As I said in my comment, we're on internet, where communication is, well, incomplete or easy to mischaracterize, since we're not looking to the body language of the speaker and where people express themselves without filters of common sense (aka acting like a humanbeing when close to another humans...)

So TL;DR: keep it short; keep it simple; keep it clear. Also, giving a fair chance to answer before isn't just a courtesy, a chivalry move. It's a proof of good will.
Also, giving a fair chance to answer before isn't just a courtesy, a chivalry move. It's a proof of good will.
We'll have to agree to disagree on this point. I don't know of anything in life that works this way.

If you find a flaw with a product marketed to the public, you are perfectly in your rights to publicly say so and it does not imply that you have ill will or an ulterior motive.

The manufacturer/publisher is then perfectly in their rights to respond with "Well, we did this internal testing and also have these results..."

But an individual has no social or moral obligation to engage in private communications first.
But an individual has no social or moral obligation to engage in private communications first.
Let's agree that moral/social obligation or not, that doesn't imply directly what should've be done (or not), shall we?

Other than that, we will start running on circles here. I want to wait for the finer bits and avoid the nonsense. It doesn't matter who was hurt in the past, we must move on and avoid that someone else will be hurt in the future instead.

Since we're here, why we don't collaborate to actually work on getting some good data and find still better ways to present it? If the OP and you or anyone else is up, I'm as well. Just count me in.

But agreeing on the general and fighting at the specifics won't help the cause.
Let's agree that moral/social obligation or not, that doesn't imply directly what should've be done (or not), shall we?

Other than that, we will start running on circles here. I want to wait for the finer bits and avoid the nonsense. It doesn't matter who was hurt in the past, we must move on and avoid that someone else will be hurt in the future instead.

Since we're here, why we don't collaborate to actually work on getting some good data and find still better ways to present it? If the OP and you or anyone else is up, I'm as well. Just count me in.

But agreeing on the general and fighting at the specifics won't help the cause.
What exactly do you mean by "the cause"?
What exactly do you mean by "the cause"?
If whoever wants, in good faith, present that obfuscated code may cause performance degradation, debating on this forum won't help to prove or disprove it.
Let's agree that moral/social obligation or not, that doesn't imply directly what should've be done (or not), shall we?
"What should be done" is the definition of a moral obligation 🤣

why we don't collaborate to actually work on getting some good data and find still better ways to present it?
If whoever wants, in good faith, present that obfuscated code may cause performance degradation...
That's all fine, and I'm not saying you're wrong or in any way impolite or anything. I just don't really get the point...this has been done. In the older thread Arthran created to and linked to in the first post of this thread. In what way wasn't it "good data" or not in good faith or needing to be presented better?

Basically anyone who owns the plugins and has sufficient technical knowledge can duplicate the tests that were described in that thread. I'm just not sure what you're trying to rally the troops for. You seem to feel that thread and its contents were somehow insufficient to the claim, but I don't understand how.

Anyway, I've said what I felt was appropriate, this is really Arthran's thread to debate.

Peace to everyone.
If whoever wants, in good faith, present that obfuscated code may cause performance degradation, debating on this forum won't help to prove or disprove it.
The contention is whether or not it's enough of a problem to be worth considering. I've been talking to a friend who does coding for a living, and he has this to say:

Attaching too much importance on simple performance measuring is a common beginner mistake for people getting into optimization. The measurements only shows like a factor of 2 or 3 which for the vast majority of the game code doesn't really matter. It may matter for the hot paths.

The thing is that you really need to consider the performance impact in context of actual usage scenarios. I once wrote an F# parser and later rewrote that into a C# parser. The C# parser was according to my measurements a million times slower. It still managed to complete within 1 second which was acceptable for my case. (~0.3 seconds added to the upstart of the game once per new update)

From a user perspective there are pretty much two cases. Either use the plugin obfuscated, or don’t use the plugin. In my “anti-lag” RMXP script I among other stuff reduced the computational complexity of looking up tiles at a position. When an event moves and wants to see if it will collide with another event it can so in constant time instead of having to look at each other event.

The consequences of this is quite interesting. Let’s say I create a plugin which does the same optimization and obfuscate it. Let us for the sake of the argument consider obfuscation magically makes checking if an event can move to a position is 50 times slower, in other words each obfuscated check counts the same as 20 normal checks (plugin not used). We can now estimate how many checks are required if X number of events try to move on the same frame.

Example 1 – 10 events
- Normal: 109 = 90 checks. (Each event does not need to check against itself)
- Obfuscated: 10
20 = 200 checks

Example 2 – 50 events
- Normal: 5049 = 2450 checks
- Obfuscated: 50
20 = 1000 checks

Example 3 – 100 events
- Normal: 10099 = 9900 checks
- Obfuscated: 100
20 = 2000 checks

Example 4 – 500 events
- Normal: 500499 = 249500 checks
- Obfuscated = 500
20 = 10000 checks

Hope this helps give some extra insight ^^

Gotta give it to the statement "TLDR: Obfuscated plugins can harm your game's performance." It is technically correct because Plugins can harm your game's performance and An obfuscated plugin is a plugin.
Well, there you have it. This checks out with what I have seen, especially on the topic of Big O notation and time complexity scaling. In small use cases, you can get away with algorithms that have a time complexity of O(n²) or even O(n!), but at larger scales...like say, a plugin library you will want algorithms that have a time complexity of O(n log n) or O(n). If the overhead of code obfuscation scales linearly with complexity, there's nothing to worry about, and in most cases, that's the case.
That's all fine, and I'm not saying you're wrong or in any way impolite or anything. I just don't really get the point...this has been done. In the older thread Arthran created to and linked to in the first post of this thread. In what way wasn't it "good data" or not in good faith or needing to be presented better?
Lack of a control experiment.
Misrepresenting of an edge case that won't realistically be used often enough to be worth considering, as the norm.
Not making enough use of the developer tools to see exactly what was taking up most of the extra render time.
That's just a start.
Now we're talking!

That's all fine, and I'm not saying you're wrong or in any way impolite or anything. I just don't really get the point...this has been done. In the older thread Arthran created to and linked to in the first post of this thread. In what way wasn't it "good data" or not in good faith or needing to be presented better?

Basically anyone who owns the plugins and has sufficient technical knowledge can duplicate the tests that were described in that thread. I'm just not sure what you're trying to rally the troops for. You seem to feel that thread and its contents were somehow insufficient to the claim, but I don't understand how.
(problem is having the plugins deobfuscated to test, LOL)

Problem's not "what" the problem is "how".

It's easy to claim that jumping in the fire might make you burn, but that doesn't matter or should be common sense at this point. We should ask different questions.

* Is the performance degraded? OK! How? *

- How many extra ms it might take to process a frame (since fps metrics alone are unreliable and dependent on several factors)?
- How we represent the data both realistically (with other plugins in a game scenario) and artificially (benchmarking) so we can assess the real-world impact of that vs the theoretical?
- What of a difference it will make for the final user (the gamer, it is)?
- Is it worth deobfuscate the plugin, at least partially, for performance sake?

These and other questions might be done for each plugin since each one of them is different. Version of the base code and the plugin should also be considered. More questions:

- How me can get this data without breaking the ToS?
- Are the devs in good will to help us and feed us some data and maybe tests?
- How we can create a good and reliable testing methodology? How we can account for error or tolerances in this methodology?

The list goes on and on...

Another interesting questions:

- What obsfucating patterns cause the most damage and should be avoided?
- What are the alternatives to them? Are the alternatives effective?
- How we can make obfuscation less impactful for the end user, in general?
- How we can make obfuscation more effective to avoid theft? There are alternatives?

It's just a matter of presenting the question responsibly, not just stating something and going to lunch.
Lack of a control experiment.
Misrepresenting of an edge case that won't realistically be used often enough to be worth considering, as the norm.
Not making enough use of the developer tools to see exactly what was taking up most of the extra render time.
That's just a start.
Oh, this. I was just late by some minutes while I was writing.
Oh my, if the objective was answering, I would prefer a PM instead. But once I am cited in a public space, I hope my right to answer is warranted.
If that applies to you, why wouldn't it apply to me as well? The reason I answered you publicly is because you explicitly tagged me, made a statement about me, and then followed up that statement with a question... in public. If you'd preferred PMs, then you probably should have PMed me from the start instead of speaking to me publicly and expecting me to somehow know that you wanted a private response.

Well, you're basically coming to the house of the devs, these forums, and pointing fingers and complaining, even if valid and respectful criticism, you must've known that some people would act in the heat of the moment.
As @ATT_Turan said, this is not "the house" of the devs. Setting aside the fact that VisuStella doesn't even frequent these forums, this is a place for all RPG Makers users to discuss topics related to RPG Maker. I neither pointed fingers nor complained--I simply presented the findings of my tests so that people could draw their own conclusions about it.

So, we must always know how to carefully choose our words
I chose my words very carefully, and I feel that I did a reasonable job at taking their repeated attempts at defaming my character in stride. I think I was fairly successful in resisting the urge to retaliate, and I did my best to keep my responses level-headed and on topic. It has been nearly a year, and I never even mentioned anything about their treatment of me to a single soul until now.

Second, I think you might have valuable information there, but the more valuable the info is, the more responsible we must be with it ... The results you should present should be as clear as possible, as well as your intentions, and then you should present your method well and objective measurements. Leave the conclusions to the reader.
Frankly, I don't know how I *wasn't* focusing on communication. My topic was literally a means of communication. I'm not trying to be cute here, I just legitimately don't understand your statement.

I feel that I was a clear as I could possibly be, and I feel that I was rather objective and that I left the conclusions to my readers, so I can't really give you a response in regard to this without you providing me with some specific examples of things that you felt were unclear or un-objective.

I'll be waiting for your next endeavours, and please forgive who was mean to you, and ask for forgiveness to the ones you were.
I never exactly held a grudge about it in the first place. While I do feel that the way they responded was wrong (both from a business standpoint and from a personal standpoint)... I am a human too, so it's not like I don't understand where they were coming from.

The reason I brought up their behavior was not so much to voice grievances about it, but moreso in response to your suggestion that I try to work with them on this matter. I was explaining that I don't feel that that is possible, because their previous actions suggest that they are unwilling to take ownership of the negative aspects of their decision to obfuscate their code and would prefer to just bury the matter.

If you look through my post history, I think you'll find plenty of posts where I've recommended VisuStella plugins to people (even within the past few days), and you'll find multiple instances of me admitting to using some VisuStella plugins, so it's not like I've got some deeply rooted personal issue with VisuStella or anything like that.

And even if I *did* have some type of negative feelings about them, I'm not the type of person that would let that stop me from viewing their plugins objectively. If I consider a plugin to be worth using in my game, I'll use it. If I consider it to be worth using to someone else, I'll recommend it to that person. Personal feelings don't really belong in those types of decisions.

However, that works both ways... No matter how much I might respect VisuStella or like the positive aspects of their plugins, if I feel that their obfuscation technique comes with an unreasonable performance penalty, I'm going to be honest about that. Personal feelings don't belong in that type of analysis.

All I said is: "beware that we're stepping on eggs here".
I feel that the fact that it's considered to be "stepping on eggs" is a problem in and of itself. This is a forum full of game developers, and game developers have a good reason to care about the performance of their games (especially on an engine that is touted as being suitable for developing games for mobile devices). I noticed something that has the potential to impact the performance of peoples games, and I noticed that the majority of people didn't seem to be aware of it, so I simply posted my findings in order to spread awareness to anyone who happened to care. I feel that that was a reasonable thing to do, and this was a reasonable place to do it. People shouldn't be trying so hard to make it so political or personal in the first place.

Also, giving a fair chance to answer before isn't just a courtesy, a chivalry move. It's a proof of good will.
Firstly, the primary reason why I didn't consider going to VisuStella first is because my thread wasn't actually about VisuStella. The thread was about obfuscation, and the impacts that obfuscation can cause on performance. I wanted the information to also reach any other plugin authors that use obfuscation, or that might consider using obfuscation in the future, as well as all the people who are or might consider using obfuscated plugins. The reason I only used VisuStella plugins in my tests is simply because those were the only obfuscated plugins that I owned--not because I wanted to single out VisuStella in particular.

Secondly, this isn't the type of matter that should be dealt with discreetly. It's not the same thing as telling someone that their fly is unzipped... A lot of people use obfuscated plugins, and a lot of people might consider using obfuscated plugins, and other plugin authors might consider obfuscating their plugins, so the performance implications of obfuscating code should be honestly publicized--not swept under a rug.

Thirdly, they absolutely had a fair chance to answer... They absolutely could have come into the thread and said something like "As we take matters regarding the performance and quality of our plugins very seriously, we will conduct our own investigation and make an official statement on this matter once we have done sufficient testing to do this matter justice."... Or they could have said something like "While it's true that obfuscated code does run slower than the original code when considered in an isolated manner, we have determined that the impact that that has on the performance of the overall game is within tolerable levels, and here is some data to prove it."... Or they could have said something like "No, you're wrong, and here is some data to prove it."... The decision not to give a serious answer was theirs.
@Arthran
Okay, got it. Yeah, seriously, that is fine for me.

Well, we don't need to take in part in this cycle, we must break from it. So I'm moving on.

Things settled, let's get to the work. I already did a blueprint of interesting stuff that I think we should do next.

Discussing anything other than that will be counter-productive now. Let's work and leave the data speak for itself. Let's go.

Final warning here. I find that a discussion on how obfuscation can effect performance could be very helpful. Unfortunately, yet again, that’s not what’s happening. If it strays again into a discussion on anyone’s personal character, it will be closed without further warning.

The reason I only used VisuStella plugins in my tests is simply because those were the only obfuscated plugins that I owned
Couldn't you just grab ANY plugins that AREN'T obfuscated for your control, and then obfuscate them yourself for the comparison? There's no reason at all for anyone to suggest deobfuscating plugins for the purpose of testing (and I don't remember or care who said that - I'm not directing this at you)


tbh, obfuscation would need to cause pretty significant performance issues to consider not using them for that reason. I see people posting events here all the time that are totally inefficient and would slow their games down. I've looked back on some of my own scripts and plugins and discovered there are much better (more efficient) ways of doing things. And just the practice of adding heaps and heaps of plugins introduces a performance hit. So to me, even if performance did take a slight dip because some plugins are obfuscated, it wouldn't be a problem, because there would be many other things contributing to it as well.

Moderator note: Also, everyone STOP picking at things another person has said and getting bogged down in the meaning of words and phrases. If it's not related to the topic, just move on. And use the multiquote button so you don't have to double post.

Original thread: https://forums.rpgmakerweb.com/threads/obfuscation-derailment-thread.155879/