Nov 3, 2021Understanding the Big-O, What Sorting algorithm is best?Big O is at the heart of the optimization process, and Big-O allows you to monitor the spatiotemporal complexity of your code or how complex an algorithm is and how long will it take to execute it. Please note that I’m not a professional engineer, but a humble indy game…Unity4 min readUnity4 min read
Nov 2, 2021Organizing your UI for performance in UnityIn a nutshell, Unity recommends you separate your canvases based on whether you will update them or not. The canvas that you don’t update will have purely static elements and be called the static canvas. The canvas you do update will be the active one. The reason it’s done this…Unity1 min readUnity1 min read
Nov 1, 2021Basics of Optimization in UnityYesterday's example should show why it’s important to cache your coroutines, but it’s important to cache variables as well. The importance of caching GetComponent: GetComponent does exactly what it says, it commits Unity to perform an action requiring searching and allocating memory. If this is being done in Update, that search and allocation are being…Unity3 min readUnity3 min read
Published inNerd For Tech·Oct 31, 2021Optimizing Coroutines in UnityCoroutines are extremely useful for any time specific function, however when one uses the yield return new function, that uses a lot of garbage allocation resources as every time the new keyword is used, Unity has to build that new thing on the spot.Unity2 min readUnity2 min read
Oct 30, 2021Using the Unity Profiler, an OverviewDay 1 of optimization class and we’re going to learn about the profiler! To open it, just go to window/analysis/profiler. It was recommended to dock it below. I’ll use my first 2D shooter game as the subject to be optimized! Running the game, we’ll see a realtime chart of how…Unity3 min readUnity3 min read
Oct 29, 20210Daily progress: The home stretch! Learning about the Unity profiler.Wow! What a journey it’s been! I’ve now programmed my first space shooter game, learned game programming in various styles from 2d, 2.5d, and a simple zombie fps to learning about more serious applications that take advantage of Augmented Reality and Amazon services! While I’m learning about optimization, I’ll also…Unity1 min readUnity1 min read
Oct 28, 2021Asset Bundles for Unity part 2: Downloading an asset bundle from Amazon AWS.We’re ready for our app to download our horse file! Let’s get into the AWSManager and prepare a method: We’ll actually take an alternative route to download the object using the URL of our object. We can find that in amazons file info.Unity2 min readUnity2 min read
Oct 27, 2021Creating an AWS Manager in Unity: Downloading the AWS SDKNow that we have an asset bundle uploaded to S3, we’ll want to download it from within Unity. To do that, we’ll need to go to this page and download the SDK. After downloading, unzip and look for the S3 package. We can ignore everything else. Import the s3 package…Unity4 min readUnity4 min read
Oct 26, 2021Asset Bundles for Unity — Uploading an Asset Bundle to AWS.The process to uploading an asset to Amazons S3 is pretty simple (in comparison to other actions). Let’s log in to our account: Go to S3 and create a new bucket. I’ll call mine sdaranatomyUnity2 min readUnity2 min read
Oct 25, 2021Asset Bundles for UnityAsset Bundles are a great way to get more content into your app, maybe you want to create DLC, or if your app is too big, you can create a smaller base app, and then download bundles for playing content as you go. To build an asset bundle, we can…Unity2 min readUnity2 min read