Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is C# fast enough for games

Tags:

performance

c#

Will a game written in C# have any speed issues after long periods of play, like for 24 hours at a time? I'm specifically talking about a 2D RPG similar to old Final Fantasy or Dragon Quest games. I know that languages like Python will slow down too much, curious how C# would stand.

edit: programs I write are a lot like a termite-infested tree :)

@jimmy - thats the entire point of this. I'm working on a small FF clone to improve my coding

like image 875
Matt Avatar asked Mar 13 '10 01:03

Matt


People also ask

What is %d in C programming?

In C programming language, %d and %i are format specifiers as where %d specifies the type of variable as decimal and %i specifies the type as integer. In usage terms, there is no difference in printf() function output while printing a number using %d or %i but using scanf the difference occurs.

Is C+ Same as C?

C++ was developed by Bjarne Stroustrup in 1979. C does no support polymorphism, encapsulation, and inheritance which means that C does not support object oriented programming. C++ supports polymorphism, encapsulation, and inheritance because it is an object oriented programming language. C is a subset of C++.

What does %c mean in C?

%d is used to print decimal(integer) number ,while %c is used to print character . If you try to print a character with %d format the computer will print the ASCII code of the character.

Is C -- a language?

C-- (pronounced C minus minus) is a C-like programming language. Its creators, functional programming researchers Simon Peyton Jones and Norman Ramsey, designed it to be generated mainly by compilers for very high-level languages rather than written by human programmers.


2 Answers

Yes, it is. Take a look at XNA. There are already some games written in C#.

like image 73
Charlie Salts Avatar answered Nov 13 '22 21:11

Charlie Salts


I'd take a look at this Channel 9 video posted years ago from Eric Lippert

Eric Lippert - Have you noticed a performance hit in .NET?

It's a great watch if you're wondering about comparative performance. Computer hardware has advanced a great deal more since then, but the concept hasn't changed, C#/.Net can have excellent performance if you're using it correctly.

like image 33
Nick Craver Avatar answered Nov 13 '22 21:11

Nick Craver