Click here to Skip to main content
14,740,854 members
Home » Discussions » C#
   

C#

 
GeneralRe: Property Attributes Pin
cecildt30-Jul-08 11:19
Membercecildt30-Jul-08 11:19 
GeneralRe: Property Attributes Pin
Wendelius30-Jul-08 11:23
mveWendelius30-Jul-08 11:23 
QuestionDirect3D Wrapper - C# or Managed C++ ? Pin
Kel_30-Jul-08 1:44
MemberKel_30-Jul-08 1:44 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Simon P Stevens30-Jul-08 1:53
MemberSimon P Stevens30-Jul-08 1:53 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
User 665830-Jul-08 2:11
MemberUser 665830-Jul-08 2:11 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Kel_30-Jul-08 10:59
MemberKel_30-Jul-08 10:59 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Mark Churchill30-Jul-08 18:05
MemberMark Churchill30-Jul-08 18:05 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Kel_1-Aug-08 4:48
MemberKel_1-Aug-08 4:48 
Thanks again.

So basically I started the C# Wrapper to be able to compare it, after a few days and going to battle vs COM objets and performant InterOp, I finally managed to wrap a part of it.

For now I'm doing just the D3DDevice creation and a simple window clear.
I compared the exactly same function calls with Managed DirectX 1.1 ones (actually everything is the same, I compared every method parameter and call with PIX debugger).

So creating D3D factory, creating a device and showing.

(Just a first draft)

DirectX.Device.Clear(0, null, ClearFlags.D3DCLEAR_TARGET | ClearFlags.D3DCLEAR_ZBUFFER, 0, 1, 0);
DirectX.Device.BeginScene();
// todo
DirectX.Device.EndScene();
DirectX.Device.Present(null, null, IntPtr.Zero, null);


And guess what, the performance are almost exactly the same between MDX and my C# Wrapper.
I'm getting around 2180 FPS with both of them.

I still would like to check IL code generated for both.



-- Everything is possible, even the impossible! ^_^

Questioncrystal reports with dynamic column display Pin
sarilee30-Jul-08 1:33
Membersarilee30-Jul-08 1:33 
Questionversion Pin
arkiboys30-Jul-08 1:20
Memberarkiboys30-Jul-08 1:20 
AnswerRe: version Pin
DaveyM6930-Jul-08 2:02
professionalDaveyM6930-Jul-08 2:02 
GeneralRe: version Pin
arkiboys30-Jul-08 3:25
Memberarkiboys30-Jul-08 3:25 
QuestionIn which event i can read the access card [modified] Pin
V K Gupta30-Jul-08 1:16
MemberV K Gupta30-Jul-08 1:16 
AnswerRe: In which event i can read the access card Pin
stancrm30-Jul-08 1:52
Memberstancrm30-Jul-08 1:52 
GeneralRe: In which event i can read the access card Pin
V K Gupta30-Jul-08 3:37
MemberV K Gupta30-Jul-08 3:37 
GeneralRe: In which event i can read the access card Pin
carbon_golem30-Jul-08 3:47
Membercarbon_golem30-Jul-08 3:47 
QuestionConverting Dataview to a Datatable. Pin
salmonraju30-Jul-08 1:15
Membersalmonraju30-Jul-08 1:15 
AnswerRe: Converting Dataview to a Datatable. Pin
ElSpinos30-Jul-08 3:33
MemberElSpinos30-Jul-08 3:33 
GeneralRe: Converting Dataview to a Datatable. Pin
salmonraju30-Jul-08 3:43
Membersalmonraju30-Jul-08 3:43 
AnswerRe: Converting Dataview to a Datatable. Pin
Syed Shahid Hussain30-Jul-08 18:04
MemberSyed Shahid Hussain30-Jul-08 18:04 
QuestionBubblesort Algorithm Pin
Vandretta30-Jul-08 1:12
MemberVandretta30-Jul-08 1:12 
AnswerRe: Bubblesort Algorithm Pin
Simon P Stevens30-Jul-08 1:28
MemberSimon P Stevens30-Jul-08 1:28 
GeneralRe: Bubblesort Algorithm Pin
Vandretta30-Jul-08 12:01
MemberVandretta30-Jul-08 12:01 
GeneralRe: Bubblesort Algorithm Pin
Simon P Stevens30-Jul-08 22:32
MemberSimon P Stevens30-Jul-08 22:32 
GeneralRe: Bubblesort Algorithm Pin
Vandretta31-Jul-08 1:13
MemberVandretta31-Jul-08 1:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.