Just implemented a feature that I thought would take 2 hours.
3 days, 2 breakdowns, and 1 existential crisis later... it's finally working.
Game development: where "quick fixes" turn into epic quests.
#GameDev#IndieDev#Unity3D#DevLife
Randomize your objects' positions in Unity with ease! 🎲🌿🗺️
Just type "+=R(-3,3)" in the Inspector to add some randomness 🌟🙂
Hopefully, this tip will save you time and give your layouts a more organic feel! 🌴👍
#UnityTips#unity3d#gamedev
Early in my career I broke Facebook Chat (pre Messenger) for all IE users. Couldn't sleep all night afterwards.
However, one of the most interesting issues I caused was when I removed about 300,000 duplicated files in Facebook's monorepo and pointed everything to the remaining copies. I went to sleep and woke up the next day with angry messages on my phone: I made https://t.co/Yj0AscnHTG 1.2 seconds slower to load!
How? Facebook's bundler used machine learning to optimize JS bundles. That bundler was relying on paths for JS files, and it didn't track changes like mine. So when I pushed my change, the bundler was under the impression that all those files were new and basically unbundled them and sent them to users as individual files instead of JS bundles!
Given the scale Facebook was operating at, and some issues in the Python based Mercurial client (which have since been replaced), it took about an hour to merge my PR into main. The revert to make https://t.co/Yj0AscnHTG fast took a three people team 12 hours to complete. Afterwards an intern and I redid the initial work by also patching the bundler's paths correctly.
I caused other large issues, but this one is my best bad one. It worked while testing, could not have been noticed in development since the bundling infrastructure was different, and basically only one person at the company would have known this issue could have been caused.
A chart showing how much you have to pay Unity for your mobile game, depending no your average per-install revenue.
The existance of the black color on this chart is the BIG problem here.
Do people who came up with this pricing scheme don't know how to use Excel?
While I still have it fresh in my mind, I have collected some notes about some of the things that slow down Unity projects in the editor here: https://t.co/UuXu12TJhG
I hope it is of use to someone somewhere!
Functions are vectors! This perspective lets us apply the tools of linear algebra to computational problems from image and geometry processing to machine learning and light transport—and provides a natural explanation for Fourier series.
Let's explore: https://t.co/gxweWoZbjf
If you’ve ever played RDR2, you probably noticed when you walk over snow, it deforms as you walk through it. And its not just your character, anything that interacts with the snow affects it.
How the f**k does it look so good?
Strap in, another massive 🧵
My new favorite pet function: a tiny generalization of Schlick's "bias" and "gain" functions that gives you a handy way to craft nice curves for easing or annealing on [0,1]->[0,1]. I wrote up a micropaper here: https://t.co/g2LlQpiFEK
Profiling is a critical part of developing a great game. Deliver a smooth experience for your players and optimize performance with profiling.
Check out this 🧵 for resources on profiling and optimization in Unity:
Cool trick from Paragon: if you have a "look around" aim offset, put the same anims at 0°, -180° and 180°. That will prevent the unnatural flipping of the character when looking directly behind. Video: with vs without #ue5study