RE: Simple VB.Net 2D Game Engine 04-29-2013, 06:48 PM
#16
(04-29-2013, 12:32 PM)Deque Wrote:(04-29-2013, 08:48 AM)ArkPhaze Wrote:Quote:Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^
VB.net is virtually the same as C#. C++ for games though and C# for "long-running programs"?? :S Why is that?
I second that question.
It's simple really. I cannot recall where I've read it, but I've read somewhere on an official Microsoft website that C# is better for applications running for a long time (aka. servers). Well, anything running the same bits of code for a very long time, which in many cases is just servers.
However when we get to games, although the code may be slightly the same, it differs more from what the server has to repeat.
This means that C++ is more suitable for games, whereas C# is more suitable for servers.
A very simple test is, try making a loop, writing "Hello there HackCommunity", say 1.000.000 times or so, in both languages. Start them at the same time and see what finishes first.
Unless something has changes drastically since last time I checked, it should be the C# code that finishes first.
I'm not sure how enlightening this bit of information has been, but I hope you found it useful.
~ Falgantil ~
PS. Also, yes, I did mean Syntax in the post I wrote above, not API. My bad.