>>321145I’ve been messing around with game optimization recently. A lot of games have unnecessarily expensive graphics because the corporate demands that, there are crazy deadlines and the art of stingy programming being lost to time. I guess this is because most people go into tech now for money and wanting to solve business tasks now.
Another reason I enjoy it is because it allows me to break and explore things I have not seen before. Building web apps over and over is very boring. It just feels like Groundhog Day every time. While with reverse engineering and modding you have to constantly adapt and find new solutions every step of the way. I could be wrong about this, of course, maybe there are interesting problems in web too. But I am more so interested in the stuff that makes you ask, is this even possible at all? And can we do it even better?
So some of the stuff I learned recently was Performance Profiling. Instead of constant trial and error you can use software that helps you see what calls the program is making, what’s the bottleneck. One of the programs that is used to do this is RenderDoc. I have unfortunately not gotten around to trying this because my setup is a bit unusual for this (MacOS and Wine). But it sounds very interesting.
Another thing I learned about was the Jump Flood algorithm. I was very confused trying to understand it at first. One video i watched showed just squares jumping around to fill a screen. I was like, what? What could this specific shader possibly be used for? I could understand that this is a more efficient way to fill an area, but also it was described to be something that can calculate distance fields. What I figured out was that JFA is used to generate an outline. I am completely new to this graphics stuff, so please forgive me for being a bit stupid about it…
Hmm, what else. I decided to use git as version control or something so I could keep track of all the changes. I honestly never memorize all the commands besides the basic ones and use a cheat sheet for everything else. Maybe it’s a bad thing, I feel like others judge me for it.