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

1.95K 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

1 2 9 10 11
Anonymous 0 Comments

Optimising is a process, it isn’t one specific thing you do. Basically any change you make to improve program performance is optimisation, and that’s generally achieved by using fewer system resources.

It can be anything including removing unnecessary code, simplifying complex code, taking shortcuts, hardcoding things with safe assumptions, using different code that works better with certain platforms/hardware. Sometimes you can tweak things to achieve massive performance gains with minimal noticeable impact.

Anonymous 0 Comments

Optimising is a process, it isn’t one specific thing you do. Basically any change you make to improve program performance is optimisation, and that’s generally achieved by using fewer system resources.

It can be anything including removing unnecessary code, simplifying complex code, taking shortcuts, hardcoding things with safe assumptions, using different code that works better with certain platforms/hardware. Sometimes you can tweak things to achieve massive performance gains with minimal noticeable impact.

Anonymous 0 Comments

Optimizing code is basically finding some section of code that is taking up a lot of processing time and (a) skipping doing things that are not necessary such as rendering a tree that is never seen, (b) pushing necessary calculations to specialized hardware that can do it faster, (c) implementing a different algorithm that achieves the same result with lower resources but is more complicated, or (d) removing the feature because it is not needed.

Anonymous 0 Comments

Optimizing code is basically finding some section of code that is taking up a lot of processing time and (a) skipping doing things that are not necessary such as rendering a tree that is never seen, (b) pushing necessary calculations to specialized hardware that can do it faster, (c) implementing a different algorithm that achieves the same result with lower resources but is more complicated, or (d) removing the feature because it is not needed.

Anonymous 0 Comments

Optimizing code is basically finding some section of code that is taking up a lot of processing time and (a) skipping doing things that are not necessary such as rendering a tree that is never seen, (b) pushing necessary calculations to specialized hardware that can do it faster, (c) implementing a different algorithm that achieves the same result with lower resources but is more complicated, or (d) removing the feature because it is not needed.

1 2 9 10 11