GPWiki.org
GPWiki.org
It is currently Sat May 18, 2013 1:23 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jun 06, 2012 5:32 pm 
Hi guys,
I have a stupid question.

It's faster: C# with XNA or: C++ with DirectX ?
and why ?

Thank you :rock:


Top
  
 
PostPosted: Wed Jun 06, 2012 5:44 pm 
Funky Monkey

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1537
Location: burrowed
Technically cpp/directx might be a tad faster.
Why, well, C# and XNA are wrapping code up, use garbage collection among other things.

In reality you don't need to care about this level of performance gain if you're casually developing games.
The performance advantage may be only minimal and a lot of it depends on the actual implementation.

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
PostPosted: Thu Jun 07, 2012 12:39 am 
Harmlessness does no harm
User avatar

Joined: Tue Sep 14, 2004 8:37 pm
Posts: 3801
Location: Ferriday, LA, US
It mainly depends on how you code. If you write an inefficient app, it will be inefficient regardless of language.

That said, C++/DirectX are empirically the faster pairing, as these are much lower-level than C# (which runs atop a large framework with substantial overhead) and XNA (which runs atop a smaller framework that runs atop the same framework as C#). Again, you can write two functionally similar applications, and get worse performance in a C++/DirectX app than with a C#/XNA app.

In either case, if you're worried about performance, and are a lone-wolf or small-time indie developer, then you're worried about something that really doesn't matter. :)

_________________
What most people don't understand about "enlightenment" is that it is not an end-goal; but where you find yourself just before taking a new "first step."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: CaptainDonut and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group