Re: C# vs C++ regarding DirectX
From: Fabian Schmied (REMOVETHISfabianDOTschmied_at_fhs-hagenbergDOTacDOTat)
Date: 11/25/04
- Next message: Fabian Schmied: "Re: Exception reading caps.."
- Previous message: Lucas Tam: "Re: C# vs C++ regarding DirectX"
- In reply to: Elephant: "C# vs C++ regarding DirectX"
- Next in thread: Elephant: "Re: C# vs C++ regarding DirectX"
- Reply: Elephant: "Re: C# vs C++ regarding DirectX"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Nov 2004 09:45:33 +0100
> if you want to build applications with .NET DirectX, is it adviced to
> use C#
> or managed C++? Speed ( frame rate ) is not the most important factor.
> Are
> there any disadvantages with C# and DirectX?
There will not be much difference in speed when you compare different .NET
languages. Sure, one compiler could expose CLR features another language
doesn't, one compiler could be a better optimizer than the other (although
most optimization is done by the JIT compiler anyway), but actually, the
C# and mC++ compiler will probably produce programs of similar performance.
To decide whether to use C# or managed C++, I'd consider the following:
- Managed C++ makes interop with unmanaged code a breeze. Use this if you
have an unmanaged code base you need to use or if you need to go to the
unmanaged world often (but be careful to reduce managed/unmanaged
transitions since those are costly). Interop with unmanaged DirectX is
possible without much pain if you need it. Also note that the next version
of managed C++ will be very different.
- C# is a much cleaner language (because it doesn't mix managed and
unmanaged code). Might be that you are much more productive using C#,
simply because the syntax is more user-friendly. Use this if you want to
create a purely managed application.
Fabian
- Next message: Fabian Schmied: "Re: Exception reading caps.."
- Previous message: Lucas Tam: "Re: C# vs C++ regarding DirectX"
- In reply to: Elephant: "C# vs C++ regarding DirectX"
- Next in thread: Elephant: "Re: C# vs C++ regarding DirectX"
- Reply: Elephant: "Re: C# vs C++ regarding DirectX"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|