How does game “optimization” work? Are people sitting there changing lines of code to more “optimal” ones? What is “optimized”?

1.99K views

The recent The Last of Us for PC made me realize I had no idea what’s meant by “optimizing” a game.

Same with optifine in Minecraft improving performance. How do these things work to just make games use fewer resources?

In: 158

105 Answers

Anonymous 0 Comments

You’re doing two loads of laundry with a washer and a dryer.

First approach is you put the first load in the washer and wait for it to finish washing, put it in the dryer and wait for it to finish drying. Then you repeat the process for your second load. The total time is two wash cycles and two drying cycles.

Optimized approach is to start second load’s wash cycle while the first load’s dry cycle is going. Now the total time is one wash cycle, one dry cycle, and some time in between a wash and dry cycle time (when both machines are in use). Much faster!

Optimizing a game is like that but finding opportunities like that in code. Technically this is only a specific type of optimization, but the general idea is to find ways to make things run more efficiently.

You are viewing 1 out of 105 answers, click here to view all answers.