Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

How much faster is c# at making games than c++?

This topic is 4503 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I was wondering how much faster c# is at making games than using c++?, as in time to make. Because I usually use c++ to make my little 'pet' games, but I was thinking of playing with something new, and possible faster to code with. So if c# is faster at development, it would give me a reason to use it :)

Share this post


Link to post
Share on other sites
Advertisement
That really has more to do with your proficiency with the language than the language itself. If you are twice as good at programming in C++ then you are in C#, then I don't think it will be any faster. However, if you are just as good at doing C#, there are certain benefits to the language that may help you get up and running in a smaller time frame.

If you're looking for faster code however, stick to C++. It might take you a little longer to develop, but the code itself will most definitely be faster to run.

Share this post


Link to post
Share on other sites
Yes it's true that to be 'fast' with any language you need to master it first. However, C# is not a bad language to have learned to be prepared for what's coming. So it's a good investment anyway.

Share this post


Link to post
Share on other sites
Quote:
Original post by Morpheus011
If you're looking for faster code however, stick to C++. It might take you a little longer to develop, but the code itself will most definitely be faster to run.


This has been debated over and over and still hasn't been proven.

At any rate, as you said, the best language is the one you are most comfortable with.

Share this post


Link to post
Share on other sites
I say stick with C++ and if you need to rapidly develop anything, pick a game engine that may be used with C++ for graphics, audio, or whatever you need.

:)

Share this post


Link to post
Share on other sites
Short answer:
2D games: the same
3D games: the same
Unreal 3, Quake 4, Xbox 360 or PS3 games: C++ (notice you don't have the skill, expertise, or even know-how to even approach a game on such a scale, ergo, don't bother trying to make one)


Sorry misread question.

Share this post


Link to post
Share on other sites
Depends at what state you are in both languages. In my opinion, C# will be fastest if you are realivly new/inexperienced in both. With C# all of the 'core' stuff is done for you, works out of the box etc. However, with C++ while yes, you get the standrad library many people don't know about it or use, and then there's boost etc. I'd also say because C# handles a lot of the low level stuff, and is more syntacilly restrictive that C# is faster than C++ in terms of development. One of the only reasons the big teams are sticking to C++ is because they have massive reusable code bases.

Share this post


Link to post
Share on other sites
Are there any clear cut benefits to switching if you already use C++? I don't think so because everything you can do in C# can and probably has been done in C++. It's like replacing your car when the one you have works perfectly fine, it's actually pretty wasteful.

From the start though? I don't know, I'm entrenched in C++...

Share this post


Link to post
Share on other sites
If you're developing applications, C# has a big advantage of C++ in terms of rapidness in development (just drag-n'-drop the controls and add event handlers: no messy WinProc and subclassing stuff) however, in terms of game development... there's no real advantage... other that .net handling the garbage collection and other nitty-gritties (like strings and arrays) for you, which could be solvable by STL or your own home-brewed library.

it's not too bad to learn C# to, it may help you in creating level editors and stuff.

Share this post


Link to post
Share on other sites
C# has a far larger library than C++, and the language has some other features that are very useful, but unless you need to switch, you probably shouldn't.

Although, I switched from C++/OpenGL to C#/MDX, and i'm glad I did.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!