I'd say OOP often fits real-time game engines and simulations pretty well
I'd argue that's not even true. Compared to functional programming, yes, but functional programming is not the only other style of programming out there. Data-oriented design and ECS are going to achieve far better performance than the average OOP engine. OOP-structured programs traditionally have terrible cache locality, which is just about the worst thing to have if you need performance.
View all comments
Show parent comment
3
u/P-39_Airacobra Sep 26 '23
I'd argue that's not even true. Compared to functional programming, yes, but functional programming is not the only other style of programming out there. Data-oriented design and ECS are going to achieve far better performance than the average OOP engine. OOP-structured programs traditionally have terrible cache locality, which is just about the worst thing to have if you need performance.