in
Welcome to Lionhead Community Sign in to Windows Live ID | Help

C# Vs Java in game Dev.

Last post 01-10-2008, 19:10 by JamesKnowles. 18 replies.
Sort Posts: Previous Next
  •  10-21-2005, 17:13 1195747

    C# Vs Java in game Dev.

    Which one between C# and Java are better than another? I have written game in C# but my familiar language is Java.
  •  10-22-2005, 23:23 1199560 in reply to 1195747

    Re: C# Vs Java in game Dev.

    Depends on what you're writing. From what I've heard C# is faster but you'd have to benchmark this to be completely sure. To write hangman in either of these languages it doesn't really matter alot. To write a 3d-engine driven game you probably shouldn't write in C# or Java at all (at least not the engine parts)
    Hapiness isn't hapiness without a violin playing goat
  •  10-29-2005, 21:16 1218416 in reply to 1195747

    Re: C# Vs Java in game Dev.

    Benchmarks show that C# is somewhere between C++.NET and VB.NET and so not really at the speed of an interpreted language. Often C# is said to be a replacement of C++ (what isnt true at all, as C++ has much more access on deep things). I think C# might be better for Game Development and I'm quite sure that it is faster. But remember that you need the NET Framework installed (which is kinda bigger than the Java Runtime). To whatsInAname8: shouldn't write in C# or Java at all (at least not the engine parts) Im sure engines will be written in C++, but looking on such opensource engines like Ogre3D... There is a C# ported version and in the tests they seem to be a bit faster already now, where .NET isnt full integrated in the OS. But for high optimisation C++ seems to be necessary.
  •  10-30-2005, 1:08 1218848 in reply to 1195747

    Re: C# Vs Java in game Dev.

     Quoting: SirLantis
    Often C# is said to be a replacement of C++ (what isnt true at all, as C++ has much more access on deep things). I think C# might be better for Game Development and I'm quite sure that it is faster.
    C# is faster to write (that is the general opinion, I actually do not agree with this, I do think that C# is more easy to learn). Definitely not faster to run. Also C# is forcing you to program in OOP. And while this is proven to be a good programming-style, it's not a solution for everything, causing you to write programs in OOP where it would be smarter to do it some other way. That's also one of the reasons why it'll never replace C++. And, ofcourse, while C++ is (apart from it's libraries) platform independent, C# is the absolute opposite of this. Tell a UNIX-programmer that he has to write in C# and either he'll laugh at you or set you on fire. And C++ should give you a better understanding of how a pc works wich can be crucial when you want to write efficient, fast and reliable code. C# however protects you from all this, and it let's you write programs without calling upon the hardware like C++ does. Just like JAVA. Now a lot of people say that JAVA is thé language to program in because it's so easy to write in and will run on every computer. The thruth sadly is that, however this was the idea behind JAVA, some parties like Microsoft (and probably some others too) created their own versions for JAVA, and now it's a dying language because it runs a little slow, it's libraries have become way too large to maintain an overview. On other platforms (for example mobile fones) it still is the most widely used language. Still JAVA is used in many OOP-classes, wich I find a little strange, because it lacks implementation of some of the most basic OOP-principles. But teachers are lot like churches and United states government.. reluctant to change. Personally I would rather choose C# than JAVA because it's a little more structured, and I don't like some of the way's JAVA deals with objects. I would however at any time prefer C++ over C#. And to conclude this: I'm working on a virtual machine language of my own, and have some early versions of the VM running but it's still far from finished. It's concepts are a little different from JAVA, wich I'll surely write down in these boards when I feel like it Wink [;)]
    Hapiness isn't hapiness without a violin playing goat
  •  11-12-2005, 15:31 1257221 in reply to 1195747

    Re: C# Vs Java in game Dev.

    In my experience, you use what does what you want it to do at a reasonable speed the easiest.
  •  11-12-2005, 15:44 1257268 in reply to 1195747

    Re: C# Vs Java in game Dev.

     Quoting: whatsInAname8
    And, ofcourse, while C++ is (apart from it's libraries) platform independent, C# is the absolute opposite of this. Tell a UNIX-programmer that he has to write in C# and either he'll laugh at you or set you on fire.
    As much as I hate to see a bumped thread, I just thought I'd correct this glaring oversight. C# is platform independent ( providing there is a VM for it - like java ), but its libraries are not.
    I have no idea what I am talking about
  •  11-13-2005, 12:33 1261130 in reply to 1195747

    Re: C# Vs Java in game Dev.

    Hey dude chang_surin im thai too! eeew ????????????????????? ?????????????? ?????-?????? ???? ???????????????????????????????? ??????????????????
  •  11-14-2005, 12:10 1265468 in reply to 1195747

    Re: C# Vs Java in game Dev.

    Yes I am Software enginer at KU. Nice to meet you.
  •  02-08-2006, 12:09 1552951 in reply to 1195747

    Re: C# Vs Java in game Dev.

    C# vs Java is probably not a question of speed. both are semi-interpreted languages with a underlying VM. probably both with a JIT compiler (as for java this is certainly true and I believe this goes for c# as well). both have a garbage collector... so there's no real difference in the underlying system here. the difference is in compatibility. while c# is cross-platform in theory the available libraries are not. you won't be able to port a game written in c# using directX to a say linux platform. java on the other hand has always been known for its cross-platform support. of couse this results in a lack of platform-specific functionality, but in 95% of the situations there's a alternative that will work nicely and is available on most platforms. as for games - java and GL4Java (OpenGL bindings) worked nicely for a team project we did in university last semester - the binaries worked on both linux and windows without any change. in one or two situations (very strange code really) we had some compatibility issues but those could mostly be solved in a platform-independant consistent manner. hth, alex
  •  02-08-2006, 12:13 1552957 in reply to 1195747

    Re: C# Vs Java in game Dev.

    Guild Wars was totally written in C# iirc.
  •  04-07-2006, 20:32 1780179 in reply to 1195747

    Re: C# Vs Java in game Dev.

     Quoting: Derobrash
    As much as I hate to see a bumped thread, I just thought I'd correct this glaring oversight. C# is platform independent ( providing there is a VM for it - like java ), but its libraries are not.
    I highly doubt if there will ever be .NET support in UNIX, but, in theory I suppose almost every high-level language is platform independent, providing that there's a compiler\vm for it. Since C# is so bound to microsoft\the windows-platform there's really no use in writing a VM for it in UNIX, and therefore C# will always be a platform dependent language. I was aware when I wrote my reply that guild wars was written in C#, that's why I'd prefer C# above Java. As for the arguments about speed etc. etc. etc. Guild Wars could have been faster if it was only written in C++ Silly [:p]
    Hapiness isn't hapiness without a violin playing goat
  •  04-07-2006, 21:05 1780303 in reply to 1195747

    Re: C# Vs Java in game Dev.

    Yes, but C# codes nicer. Happy [:)]
  •  04-08-2006, 9:14 1782146 in reply to 1195747

    Re: C# Vs Java in game Dev.

     Quoting: whatsInAname8
    I highly doubt if there will ever be .NET support in UNIX,
    Mono.
  •  04-08-2006, 15:56 1783153 in reply to 1195747

    Re: C# Vs Java in game Dev.

    But that's not full .NET support.
  •  04-09-2006, 16:24 1787364 in reply to 1195747

    Re: C# Vs Java in game Dev.

    If you say so, I don't follow this whole thing closely enough to know. What's missing?
  •  04-10-2006, 21:33 1793214 in reply to 1195747

    Re: C# Vs Java in game Dev.

     Quoting: Lourens Veen
    If you say so, I don't follow this whole thing closely enough to know. What's missing?
    It is actually quite complete. What is missing is the Windows based stuff like forms, and the image libraries come to mind. All will come in time I'm sure. I believe that they are currently working on such things, or so their website once said.
    I have no idea what I am talking about
  •  04-10-2006, 21:39 1793245 in reply to 1195747

    Re: C# Vs Java in game Dev.

    I really hope so. I'd love to be able to write in C# for multiple platforms.
  •  11-12-2007, 20:32 2804364 in reply to 1552957

    Re: C# Vs Java in game Dev.

    The Bag:
    Guild Wars was totally written in C# iirc.
    It isn't. It's in C/C++ - it doesn't load managed assemblies and it invokes Win32 API calls directly if you hook it into debugger. Oh, and sorry for threads archeology. Rolleyes [:rolleyes:]
  •  01-10-2008, 19:10 2833216 in reply to 1195747

    Re: C# Vs Java in game Dev.

    XNA support for C# make it a very G o o d [Good] choice now for games dev
View as RSS news feed in XML