[gameprogrammer] Re: C# vs C++

  • From: Paulo Pinto <pjmlp@xxxxxxxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Wed, 11 Feb 2009 00:38:14 +0100

The last year I went to a few job interviews were the studios were using C#
or Java for almost everything.

C++ was only used on the graphics engine, everything else was done in one of
the above languages.

And many studios are now using Java or C# for their art tools and production
pipeline.

This is nothing new. I am old enough to have coded applications in Assembly,
then came C which
was too slow, then came C++ which was too slow, and so on.

True, the new languages, when they appear are a bit slower than the current
ones, but the increase
in productivity compensates the slower speed. And with time, the compilers
and hardware improve
and they are not slower any longer.

JITs can produce much better code that many standard compilers. The GC can
be a bit of a nuisance,
but you change need to change the way you code some algorithms.

Here you can read a lot about game development with XNA, done by real
studios.
http://msdn.microsoft.com/de-de/xna/aa937787(en-us).aspx

Games done with C# and OpenGL by ExDream:
http://www.exdream.com/index.html

Games developed in Java with the Java Monkey Engine:
http://www.jmonkeyengine.com/movies_demos.php

I would not give that much value to DirectX, it is just one API between
many. it is only used
on Windows and XBox.

Everyone else either uses OpenGL or some sort of proprietary API. Not to
mention that many
middleware engines make it irrelevant which API you are actually using.

Cheers,
Paulo

On Wed, Feb 11, 2009 at 12:07 AM, Matthew Weigel <unique@xxxxxxxxxxx> wrote:

> Alan Wolfe wrote:
>
>  C# is deffinately fast enough to make some games (chess for instance hah!)
>>
>
> Yep, C# and Java have entered the realm of "fast enough for a lot of
> things" at this point.  As someone pointed out to me recently, 3D games with
> things like dynamic shadows run fine in Java (and, I would assume, C#).  On
> the other hand, I find C# and Java to be a little to stringent about syntax,
> and lacking power in their generics (over C++ templates).
>
> My druthers is C++, but I know plenty of people who look at me like a
> crazed crazy thing for not recognizing the beauty and awesomeness of JIT
> languages like C# and Java.  To each their own.
>
>  i think XNA is C#? i could be wrong tho.
>>
>
> Yes, it is.
>
>  anyhow, if you program in C++ it's easier to port your game to other
>> platforms - such as iphone, DS, Wii, 360, etc.
>>
>
> Well, the iPhone requires Cocoa, which is Objective-C... nothing is as
> portable as we might like. :-)
> --
>  Matthew Weigel
>  hacker
>  unique & idempot . ent
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>

Other related posts: