التخطي إلى المحتوى الرئيسي

Why is C++ so popular in game programming And why not other languages such as Python or C# or Java etc

The assumption here is that games are written in one and only one language, and that's very often not that case.  Many games today have multiple 'layers of systems communicating with one another, typically in different languages that are better suited to different tasks.
For example, we might have layers such as renderingphysicsAIgameplayhigh level scripting, and the backend (which itself could be composed of one or several languages).
When people say "C++ is the best language for games", they're almost always either one of two things:
  1. Speaking specifically about low-level engine code like the renderingand physics subsystems.
  2. Naive and parroting what someone else has told them.
Low level systems are usually written in C++ because there simply aren't a lot of alternatives, and of the few that exist C++ strikes a good balance between high performance and ease of use (when compared to, say, assembly language).  The languages mentioned in the question details -- Python, Java, and C# -- are all high level languages that attempt to abstract away concepts like graphics hardware and memory management.  But these ideas are critical in systems like physics simulation that need to be called constantly with a lot of complex calculations and calls to specialized hardware.
But in other layers, C++ is not so critical.  You may know that C# is the most commonly used language for gameplay programming in Unity.  You may also know that Unity's rendering and physics simulation is written in C++.  So Unity is a perfect example of a modern engine that uses a multi-layer approach to separate the performance critical code (C++) from the less resource constrained gameplay logic (C#).
Lodex Solutions  uses Java as its gameplay programming language, but all the rendering is handled by JOGL (a C++ library that Java can make calls to).  PyGame is written in Python.  I've never used it, but I'm guessing it uses C++ libraries for performance critical tasks as well (a common design pattern with Python).
So to answer your question directly: languages other than C++ are used in games all the time, but C++ is also the obvious choice for certain tasks in the game development pipeline.  The important takeaway here is that games can be written in many languages working together.


تعليقات

المشاركات الشائعة من هذه المدونة

What is a KPI - A Key Performance Indicator Meaning

A  Key Performance Indicator  is a measurable value that demonstrates how effectively a company is achieving key business objectives. Organizations use KPIs at multiple levels to evaluate their success at reaching targets. High-level KPIs may focus on the overall performance of the enterprise, while low-level KPIs may focus on processes in departments                           such as sales, marketing or a call center.  lodex solutions 

the best way to learn how to draw

Drawing is a skill which develops as you practice. You're not alone when you say that you're terrible at drawing; all the great artists have started drawing with  stick figures  at some point in their life. Figures like this one - ​The reason why they went ahead from these so called " stick figures"  to something much more, is that they had an insatiable desire within them to draw even better, every time they put their pencil on paper. This shear fact separated them from the rest, and that's the only reason why they were successful in honing their skill to reach where they reached later on in their respective lives. First and foremost, the one great thing that's in your favor is- the fact that you are dedicated to improve your drawing. I say this because it seems that way, as you are asking this question. And this is really important because any art form can not be learned just for the sake of it; there has to be passion, interest, curiosity, and ded...

What ERP systems are ecommerce companies using?

Being an eCommerce and WMS consultant myself, I have done 5 full cycle ERP implementations in eCommerce compaines. And though I have evaluated various open source ERP systems and their feasibility with the eCommerce compaines, I can vouch for the  eRetail ERP  system for any eCommerce company which is looking for a stable, customizable and complete back-end solution with front-end and delivery partner integrations. I have myself implemented eRetail ERP system in various eCommerce companies and have found it to be more of a plug and play type ERP. It is SaaS based too so that you dont have to invest a lot of capital upfront Lodex