C++ for games – pros and cons
There is a never-ending debate between C++ and Java. However, we will not go into the controversy and will try to look at them from the perspective of game development. C++ has a slight performance edge over Java, and Java is known for its simplicity.
There may be many programmers who are more comfortable in C++ than Java, or vice versa. In game development, personal choice of programming language does not matter. Hence, using NDK or SDK has to be determined depending on the requirements. It is always recommended that you use the Android SDK to develop an application rather than using the NDK.
Let's discuss the advantages and disadvantages of using native language for game programming.
Advantages of using C++
Let's first have a look at the positive side of using C++ for game programming through the following points:
- Universal game programming language
- Cross platform portability
- Faster execution
- CPU architecture support