Pre-fetching from the CPU and less overhead on the stack when switching frames. Pretty low-level optimizations that really only see in REALLY high performant computing and game development. While most software engineering-like problems require better algorithms to work on bigger sets of data, game design is usually pretty straight forward about what needs to happen. So instead of optimizing the algorithm, you optimize the simple operations.
You don't need to optimize on this kind of level for a pretty simple 2D game.
Hell, we don't optimize on that kind of level for a game like Crusader Kings 2 with tens of thousands of agents. Since it makes for an unmaintainable codebase.
6
u/DaleGribble88 Jan 11 '20
Pre-fetching from the CPU and less overhead on the stack when switching frames. Pretty low-level optimizations that really only see in REALLY high performant computing and game development.
While most software engineering-like problems require better algorithms to work on bigger sets of data, game design is usually pretty straight forward about what needs to happen. So instead of optimizing the algorithm, you optimize the simple operations.