3 ms·
The particular example of game engines is where many laws of clean code break down. The tradeoff to performance is usually not worth it to get immutable data st
by alkonaut 9y ago
The particular example of game engines is where many laws of clean code break down. The tradeoff to performance is usually not worth it to get immutable data structures, AoS and all those niceties. Instead you make singletons, SoA, collections of mutable entities and so on. And that's fine, as long as you have good performance reason to make that tradeoff.