In many cases 16-bit integers are enough for storing positions and velocities (with carefully tuned range). Other stats can use 16-bit or even 8-bit integers, bit-fields can be used for boolean flags and other small integer values (like team). Storing per-moster name may be not necessary unless they are not monsters but unique NPCs.
The same optimization may also reduce network bandwidth for multiplayer games and save sizes for singleplayer games.
This can be optimized further even without struct of arrays:
In many cases 16-bit integers are enough for storing positions and velocities (with carefully tuned range). Other stats can use 16-bit or even 8-bit integers, bit-fields can be used for boolean flags and other small integer values (like team). Storing per-moster name may be not necessary unless they are not monsters but unique NPCs.The same optimization may also reduce network bandwidth for multiplayer games and save sizes for singleplayer games.
The struct can be optimized but if we keep growing it with our features we hit the same problem for the cache line sequential access.
Smaller structs help with keeping working set down though.