Skip to main content
gamedev.net
🔒 Locked

C#

Started by template Apr 27, 2003 at 5:35 PM 4 replies 1k views
Original Post
template
template
Is C# fast enough to make 3d games in (like quake 2 or maybe even quake 3)? and if not, do you think C# will be fast enough as the compilers get better?
Corry
Corry
Since no one else has responded, I''ll throw in my $0.02. Script languages are worthless for games. They will never be as fast as machine code since they have to run through an interpretor. This is going to involve, at the very least, integer comparisons from memory, then executeing functions, so the fastest an interpreted language can ever be is 1/2 that of a language compiled to machine code directly. If you look on I think the Berkely CS page (it was berkely or some other major CS university) there was a "race" done C++ vs Java, very well thought out, but nothing official...it found java, at its fastest (using the hotspot compiler, etc) to be 8x slower than C++ code. Still want to write games in script languages?
Smurfwow
Smurfwow
Corry: i''d edit that post quick smart before thona see''s it

(and while your at it... read up a little on C#/managed dx9?)
Arild Fines
Arild Fines
Corry - your post is worthless. Please delete it.



"To assert that the earth revolves around the sun is as erroneous as to claim that Jesus was not born of a virgin."
-- Cardinal Bellarmine
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
thona
thona
quote:
Original post by Smurfwow
Corry: i''d edit that post quick smart before thona see''s it

(and while your at it... read up a little on C#/managed dx9?)


Absolutly correctly. I ESPECIALLY Like the 8x factor here. A stupid benchmakr read and interpreted by someone without a clue, I would say.

Expect 10% to maybe 20% performance drop. Which in most cases is way more than acceptable. AND you can optimise this out - especially in 3d graphics you should be able to go even down with the loss to maybe 5% to 10% of total performance.

The C# JIT (1.1, the new one) is pretty amazing, performancewise.



Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)
RegardsThomas TomiczekTHONA Consulting Ltd.(Microsoft MVP C#/.NET)

Topic Locked

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

Sign in to reply to this topic.