Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Changed SubCell to byte. #15479
The whole point of this is to reduce the size of value types (structs etc) which will increase the performance by reducing the cost of copy these values to the stack. Ofc this will introduce a risk like all code changes. I would say that this is a low risk low reward change which was easy to do.
Most of these value types are used in the hot path of the engine, ie the pathfinding.
Even from a practical standpoint - it's a reasonable assumption to assume that even the most extreme subcell amounts will cap between 10 and 50 - on huge cell sizes the cell-based maps becomes more of a burden than something properly playable and no amount of subcells can fix that.