News for hackers. Stuff that matters.
Re:“Clean” Code, Horrible Performance by adamrezich on Tuesday February 28, 2023 @05:32PM (#34975878)
I'm not sure why you would say that—it's certainly a reason why some (not AAA) games are slow.
Re:“Clean” Code, Horrible Performance by int_19h on Tuesday February 28, 2023 @06:23PM (#34976390)
It should be noted that there were AAA games written in this fashion, and they were not slow. All method dispatch was virtual in UnrealScript, for example.
Re:“Clean” Code, Horrible Performance by Arelius on Tuesday February 28, 2023 @07:30PM (#34977068)
Well, for starters, many AAA games in Unreal had to have many core functions/classes rewritten from UnrealScript to C++ for performance reasons, where often not every call is virtual. Secondly, UnrealScript is not really a great example, since on-top of Unreal being notoriously on the slower-end of game architectures, and even Epic decided to drop UnrealScript.

And importantly, UnrealScript was designed in the 90's, when memory latencies were far less of problem.

Re:“Clean” Code, Horrible Performance by int_19h on Tuesday February 28, 2023 @08:38PM (#34977638)
Of course C++ is faster, although that has more to do with being compiled rather than bytecode-interpreted. But even so, we played those games on hardware that's very slow by modern standards, and it was fast enough for competitive PvP, so I wouldn't describe it as "slow" in absolute terms.