![]() ![]() If you load an image in at a smaller size and scale it up at runtime, it uses less memory / RAM. The larger the object is, in pixels, the more memory (RAM) it uses up. That means even if your image is 240 x 100 pixels, it’s actually using up the same amount of memory as if it was 2048 x 2048 pixels. The software draws invisible boxes around objects in multiplies of powers of 2 – if the image is 9 pixels, there will be a box 16 pixels, wasting memory. Where possible, try and use images with sizes at the power of 2, eg, 2, 4, 8, 16, etc. One of the biggest drains on performance was the size of textures and sprites. Below are some further links to investigate on the subject. Both of these tools work differently but they will help you to find out where your bottlenecks are in terms of RAM, performance and file size. Learn how to use the Unity Profiler and Memory Profiler. Eventually I got it to run smooth on ps4. It ran fine on PC but didn’t run well on the ps4 dev kit initially, there was a lot of lag. ![]() The other was my recent game Puzzledorf on Steam. One was a study RPG project called World Beneath. I’ve worked on a couple of larger Unity projects now. This optimization guide won’t cover everything you can possibly do to optimize a game, but I can share the tips I’ve learned so far that got me the most benefit for the least effort. We also want all files to be only as small as they need to be, and no bigger. What we want to do is limit how much the computer has to do every frame, every second, which in turn will speed up your game. That means your game will attempt to process everything you’ve told it to do, 60 times per second. When your game runs, it is set to run at a consistent frame rate, eg 60 frames per second, or 60fps. ![]() There are a few key areas that will affect this more than others: To optimize your game means to make sure it runs at it’s best possible performance. Understanding Optimizationīefore reading this article it helps to understand what we mean when we use the word optimize. I will update this periodically if I discover anything new.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |