-5

C++, as I have seen, is being heavily used in 3d video game engines.... Is it because of the performance issues, legecy code or libraries such as DriverX?

If performance, libraries and code infrastructure are the reasons, dosen't that make C++ indispensible, at least for game engines? (ie, we have no other option even in the very distant future).

I asked this because, I have the right to know the upcomming future trends in game engines.

Vaillancourt
  • 16,325
  • 17
  • 55
  • 61
kasperov
  • 43
  • 1
  • 4
  • What is the problem you are facing? According to the faq you should ask questions based on actual problems that you face. – AturSams Oct 01 '12 at 07:44
  • C++ is fast, but C++ can't be used in every environment. You can use C++ in Flash (Alchemy) theoretically, but it's converted and loses some of it's performance. That makes c++ a poor choice for a browser game, if You don't want to lose users who can't install a browser plugin (like in Quake Online). – Markus von Broady Oct 01 '12 at 07:56
  • 1
    More to the point, whatever you learn with c++ will be applicable to whatever comes next. – Jari Komppa Oct 01 '12 at 08:09
  • @JariKomppa unless quantum/biological processors turn programming upside-down! – Markus von Broady Oct 01 '12 at 08:17
  • 1
    @MarkusvonBroady that probably won't change the way linear algebra works, to throw a random example. – Jari Komppa Oct 01 '12 at 08:18
  • 2
    Seriously? The future of C++ in game engines, again? Same answer, nobody knows: http://gamedev.stackexchange.com/a/37385/14808. – Laurent Couvidou Oct 01 '12 at 08:39
  • Hmm.. interesting claim: "one has the right to know the upcoming future trends in [insert here]". In the very distant future.. mankinds' predictions were always extensions of what they knew to be achievable in the present. If this is the case, a totally new paradigm should emerge, but we might not live to see it. When in doubt, just code and see, consult statistics and decide for yourself.. – teodron Oct 01 '12 at 08:46
  • I gave decided by myself, I just want to confirm from the other people. – kasperov Oct 01 '12 at 08:50
  • -1 for "I have the right to know the future". – Trevor Powell Oct 01 '12 at 10:00
  • yeah, I have the right... – kasperov Oct 01 '12 at 11:07
  • Maybe, you should considered not to post this kind of question in general. Overall, most of the programming languages will do for making game apps/video games. Even using HTML can be used for creating games. Please, ask something about concepts, not the language, okay? – David Dimalanta Feb 16 '13 at 12:02

1 Answers1

4

Some reasons off the top of my head because there are no, IMHO, technical no goers to have say a C# engine:

  • It has been like that for long time (so Nintendo won't send you a python engine because your team programs in python)

  • C++ is Fast (which is good not only for physics engines but also for scene node traversal, occlusion queries, ...)

  • I'm not sure about this but maybe (personal opinion here!) : You hire a C++ programmer because if you can program in C++ you are at least at a minimum level and can easily learn other languages / techniques. Maybe I'm just believing that there is some sort of C++ Lisp-like genius myth though.

  • C++ can be very efficient when it comes to memory usage. A low overhead of your triangle class is important when you want to load up 12 million triangles in your octree.

  • There are a lot of libraries compilers and tools, well tested, out there for C++.

But I guess it's most historical reasons.

Don't forget that many engines comes with bindings to other languages. They are coded in one (say C/C++) but can be used by another (say java).

Valmond
  • 2,454
  • 2
  • 18
  • 28
  • By the reasons you gave, I have concluded that C++ will be here to stay for game engines till there is some 'heavy' radical change in hardware design, ie very very long future ahead. – kasperov Oct 01 '12 at 08:55
  • Those changes might already be here! Like languages for shader programming and other parallel processors. They do bind nicely with C/C++ though :-) – Valmond Oct 01 '12 at 09:45
  • so, are you saying that C++ is going down, especially in its niche of game engines? Whats replacing it? – kasperov Oct 01 '12 at 11:01
  • Folks, please move this discussion to our chat. – Ricket Oct 01 '12 at 13:27