Skip to main content
GameDev.net gamedev.net
🔒 Locked

c++ or c#

Started by jagguy May 1, 2006 at 2:32 AM 39 replies 14k views
Original Post
jagguy
jagguy
I haven't been around for a while , and I have a basic query. I just want to ask how C# is now rated compared to C++. Like , is C++ still the most popular language, or is c# now seen as more of an equal to C++ for game programming?
xEricx
xEricx
With C# you can land a job as a tools programmer in a games company. With C++ you have more chances to be able to work on the engine, gameplay, etc... Games themselves are mostly written in C++.
DaCracker
DaCracker
I prefer C++ for game development.
Calin
Calin
Best thread on the subject in my opinion. Check out what Saruman has to say.
My project`s facebook page is “DreamLand Page”
Calin
Calin
Thanks, I just solved it too.
My project`s facebook page is “DreamLand Page”
aleks_1661
aleks_1661
Mat Noguchi from bungie is a big advocate of c# so some of the industry is beginning to turn. There was mention of it a month or so back on sweng-gamedev mailing list IIRC.

Twitter: [twitter]CaffinePwrdAl[/twitter] Website: (Closed for maintainance and god knows what else)
programwizard
programwizard
C++ is still the most commonly used language in the industry, and probably will be for a while to come (mainly because current programmers are already trained in C++, and many companies 500,000+ line code bases are still written in C++). As was stated above, C# is very useful for tool development and other auxilliary components for the game, and it is making signifigant inroads in the business app/GUI development field, thanks to the capabilities of the .NET framework.
------------------------------Support the Blue Skies in Games Campaign!A blog... of sorts.As a general rule, if you don't have a general rule in your signature, you aren't as awesome as someone who does. General rules roxor teh big one one ones.
Riviera Kid
Riviera Kid
if your using c# arraylists to manage your textures your gonna get a performance hit.

using realloc and a stack to remember which array indexes are empty is fast.

c# have an unsafe allocator aswell so you can use that. But then your gonna have as much coding to do as c++.

--------------------------------Dr Cox: "People are tard coated tards with ***tard filling."
adam23
adam23
I prefer C++ because I have been using it for 4 years. C# is really easy to use, and very similar to Java. I think one day C# will start to make a bigger impact in the game industry but right now C++ is the main language.
Adamhttp://www.allgamedevelopment.com
Arild Fines
Arild Fines
Quote:
Original post by adam23
I prefer C++ because I have been using it for 4 years.

So next year you will prefer it because you have been using it for 5 years?

--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
nickwinters
nickwinters
C# isn't available for any consoles yet. There's been some word that MS is working one something to have C# on XBOX 360. Possibly just GUI stuff. I remember reading something on it, but I can't find the page right now.
Rob Loach
Rob Loach
Quote:
Original post by nickwinters
C# isn't available for any consoles yet.
Incorrect. At the last GDC, they had a Managed DirectX demo running on an Xbox 360.
Rob Loach [Website] [Projects] [
Surg
Surg
Are you asking becuase you want to know which one to learn? If you are, learn both. If you learn on picking up the other shouldn't be to hard either(Which is true with a lot of languages, they all have the same base things). I prefer C++ becuase i find it more portable(probably every major system has a c++ library for it).
Xpyder
Xpyder
Personally, I started game development (well..samples etc) in C++, making a basic RPG, and now I prefer C#.

C# is simpler, and easier to manage then ++, and in programs such as games (which you will want to re-use the code for later / make changes during development) this is essential.

I don't know much about the current state of the market, but my guess is the game industry needs to keep pumping out games, so they use what they know.

I can't imagine in 10+ years people will still be using ++, or another unmanaged language to create games.
Microsoft created C#, and they are also currently creating what will be the most advanced, and widely used OS in the world, thats got to mean something :)

James
JUST-CODE-IT.NETManaged DirectX & C# TutorialsForumsArticlesLinksSamples
HopeDagger
HopeDagger
As others have already said, C++ is still the main jazz in the game development industry. However, for hobbyist projects and learning purposes, there's absolutely nothing wrong with C#. It's quite capable of creating games of reasonable intensity. A handful of commercial games have already been created with C#, so the industry is still not 100% C++ dominated. There's still room for the aspiring .NET coder, I say! [smile]
Flimflam
Flimflam
I would personally go for C++, but C# has it's uses too. It's a very much used language here and there, especially in the tools sector for games. I dont think any commercially shipped games use C# or any .NET language yet.

It would be very beneficial to learn both of them, preferably.
Marius
Marius
Nomatter how will be... allways "C is faster than C++ and C++ is faster than C#/Java".
MCO

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.