r/ProgrammerHumor • • Jan 28 '23

Meme C++

Post image
53.9k Upvotes

1.5k comments sorted by

View all comments

4

u/TMM1003 Jan 28 '23

C++ is used by the entire gaming industry whether you like it or not and I do not understand why

15

u/[deleted] Jan 28 '23

I mean what else are you going to write games in, I guess C and Rust would be nice but all the good game engines are written in C++

11

u/dob_bobbs Jan 28 '23

Sheer performance speed? (If actually written competently)

9

u/[deleted] Jan 28 '23 edited Jan 28 '23

That's not entirely true. Many AAA engines have their own scripting environment with custom languages including C influences, Lua, Python, and more. id Tech 4 and later (Doom), the IW engine (Call of Duty), Blam! (Bungie's engine for Halo), and more are examples. Even the engine for Destiny offers C# or Python scripting IIRC. Newer engines are now going towards the route of visual scripting but that is mainly reserved for level designers that don't need programming knowledge, notable examples include Unreal, Snowdrop (engine for The Division), and Cathode (mainly for AI in Alien: Isolation).

If you're an engine developer then yes, C++, C, and some assembly knowledge is required.

2

u/Mooks79 Jan 28 '23

I think NaughtyDog used one of the LISP derivatives for a while, Racket maybe, for their scripting.