3 ms·
Same tension occurs in Java games for phones, at least pre-android. Instead of an array of Sprite objects, turns out its more efficient to have parallel arrays
by crucini 12y ago
Same tension occurs in Java games for phones, at least pre-android. Instead of an array of Sprite objects, turns out its more efficient to have parallel arrays of ints, which leads to less readable code.
- blt 12y agowith Java it's even worse because SoA is the only way to get your data packed in contiguous memory, as opposed to spraying it all over there GC heap.