Vetex code copypasta

probably not what you expected :joy::index_pointing_at_the_viewer:

bro this guy doesn’t even know how the roblox engine works why do people believe him that he can decompile and actually fix things in a game he didnt make. i called him out for saying he knows lost magic stats and stuff when those magics dont exist and he crashed out saying he can fix all the lag and exploits but he didnt even know that the game mainly lags due to rendering not script performance
32773

on an unrelated note, does anyone know what and why vetex said this monologue

chop this mans balls off

huh???

:tongue: :tongue: :tongue:

this was an extremely old meme

i wonder why i get 40 fps on my 3070ti and i7 12700 when im playing ao

is that the actual code

Okay so the code isn’t pretty and there’s definitely better ways to do it but can I politely ask what the hell is that wrong with it.

endless elseif

Yeah, the dreaded cherry-picked condition wall in something that looks like it is only used when the dialogue options change is truly the bane of computers everywhere.

Crazy because I get 90 fps steady on a MacBook Air with max graphics

this stuff adds up. and if vetex went full yandere dev with dialogue options he probably did with everything else. 10+ years of experience with roblox and that’s what he can come up with?

i have around 200 fps until i get hit with 1000 elseifs and memory leaks

You act like the performance isn’t actively being worked on. If you looked at the trello you would see all the work Partcline is doing to improve optimization and general performance. Also it’s important to mention that memory leaks are incredibly difficult to find it’s not that simple.

so basically what’s going on here is that vetex wrote some code in order to color the dialogue box actions depending on the text in the action. he likely didn’t expect to have so many different reasons to recolor the dialogue box, so it started as an if/elseif statement to handle various different cases. then, the game got bigger, and more dialogue action colors got added, so he just added on new elseif statements to handle the new cases from the new dialogue. this is pretty inefficient (well idk. the performance hit of this is pretty negligible i would imagine) and a bit hard to look at, but it’s still easy to expand, and i don’t imagine there’s been a compelling enough reason to redo this code, so it’s just gonna stay like that

the variable names aren’t a part of the code btw thats just how every decompiled script looks. this is honestly a pretty nothingburger post like sure this is bad practice but this just happens when u making video games

8 Likes

performance has been shit since release.

i gave up on this game so i dont

why are you even still here

genuine question, you don’t even seem to like AO, you just sit here and complain and talk about how you’ve fully given up on the game etc etc.
why did you come back???

11 Likes

i agree this is a nothingburger but it makes me wonder if he put 100 elseif statements somewhere else that would tank the performance

I vaguely recall one of the professional games devs in vetex’s friends chat talking about similar points, but you don’t get it. The if statements are murdering the performance…

So what you’re saying is you think it makes sense to complain about something without even trying to look to see if it’s being fixed. Ok ok makes total sense for sure, anyway if you’ve given up on the game doesn’t really make a whole lot of sense to stay on the forums just to hate on it but that’s just me.

i doubt that would significantly tank the performance at all, its just logic (altho i could be wrong ive never been that great at precise optimizations). the problem with long if/elseif chains is expanding on them and the code looking really sloppy and hard to read. i couldnt tell you what is tanking ao’s performance because i have never seen the code other than this one gif sooo