Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Property Attributes Pin
cecildt30-Jul-08 10:19
cecildt30-Jul-08 10:19 
GeneralRe: Property Attributes Pin
Wendelius30-Jul-08 10:23
mentorWendelius30-Jul-08 10:23 
QuestionDirect3D Wrapper - C# or Managed C++ ? Pin
Kel_30-Jul-08 0:44
Kel_30-Jul-08 0:44 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Simon P Stevens30-Jul-08 0:53
Simon P Stevens30-Jul-08 0:53 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
User 665830-Jul-08 1:11
User 665830-Jul-08 1:11 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Kel_30-Jul-08 9:59
Kel_30-Jul-08 9:59 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Mark Churchill30-Jul-08 17:05
Mark Churchill30-Jul-08 17:05 
AnswerRe: Direct3D Wrapper - C# or Managed C++ ? Pin
Kel_1-Aug-08 3:48
Kel_1-Aug-08 3: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 0:33
sarilee30-Jul-08 0:33 
Questionversion Pin
arkiboys30-Jul-08 0:20
arkiboys30-Jul-08 0:20 
AnswerRe: version Pin
DaveyM6930-Jul-08 1:02
professionalDaveyM6930-Jul-08 1:02 
GeneralRe: version Pin
arkiboys30-Jul-08 2:25
arkiboys30-Jul-08 2:25 
QuestionIn which event i can read the access card [modified] Pin
V K Gupta30-Jul-08 0:16
V K Gupta30-Jul-08 0:16 
AnswerRe: In which event i can read the access card Pin
stancrm30-Jul-08 0:52
stancrm30-Jul-08 0:52 
GeneralRe: In which event i can read the access card Pin
V K Gupta30-Jul-08 2:37
V K Gupta30-Jul-08 2:37 
GeneralRe: In which event i can read the access card Pin
carbon_golem30-Jul-08 2:47
carbon_golem30-Jul-08 2:47 
QuestionConverting Dataview to a Datatable. Pin
salmonraju30-Jul-08 0:15
salmonraju30-Jul-08 0:15 
AnswerRe: Converting Dataview to a Datatable. Pin
ElSpinos30-Jul-08 2:33
ElSpinos30-Jul-08 2:33 
GeneralRe: Converting Dataview to a Datatable. Pin
salmonraju30-Jul-08 2:43
salmonraju30-Jul-08 2:43 
AnswerRe: Converting Dataview to a Datatable. Pin
Syed Shahid Hussain30-Jul-08 17:04
Syed Shahid Hussain30-Jul-08 17:04 
QuestionBubblesort Algorithm Pin
Vandretta30-Jul-08 0:12
Vandretta30-Jul-08 0:12 
AnswerRe: Bubblesort Algorithm Pin
Simon P Stevens30-Jul-08 0:28
Simon P Stevens30-Jul-08 0:28 
GeneralRe: Bubblesort Algorithm Pin
Vandretta30-Jul-08 11:01
Vandretta30-Jul-08 11:01 
GeneralRe: Bubblesort Algorithm Pin
Simon P Stevens30-Jul-08 21:32
Simon P Stevens30-Jul-08 21:32 
GeneralRe: Bubblesort Algorithm Pin
Vandretta31-Jul-08 0:13
Vandretta31-Jul-08 0: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.