Why games made with C++ are more optimized?

524 views

C++ is the language used in almost all AAA titles. I seen youtube tests that show C++ to execute tasks faster than C# or Python for example. But i heard C is faster than C++ also, so why C++?. And what makes C or C++ faster than other languages (except assembly and machine code of course)?

In: Technology

8 Answers

Anonymous 0 Comments

C++ is a relatively low level programming language that is ultimately compiled down to raw machine code. It is highly versatile, but also has a large learning curve and makes it very easy to do something wrong. That being said, if a developer knows what they’re doing, they can make an extremely well optimized program in C++. Higher level languages such as C#, python, etc… are all mostly designed for ease of development and practicality. They handle things like memory, garbage collection, system calls, things along those lines. 99% of the time, they are **efficient enough**, but will not run the same as a low level language.

You are viewing 1 out of 8 answers, click here to view all answers.