Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please use the programming forums.


 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Darwin came a-callingmemberdjj5512 Feb '13 - 3:07 
GeneralRe: Darwin came a-callingmemberTesting 1 2 ... uh... 7?12 Feb '13 - 4:17 
GeneralRe: Darwin came a-callingmemberryanb3112 Feb '13 - 4:36 
GeneralRe: Darwin came a-callingmemberChris Quinn12 Feb '13 - 4:18 
GeneralRe: Darwin came a-callingmemberRajesh R Subramanian12 Feb '13 - 4:50 
GeneralRe: Darwin came a-callingmemberMark_Wallace12 Feb '13 - 19:49 
NewsWinRT [C++/Cx to C#] performancememberSuper Lloyd12 Feb '13 - 1:56 
Hi Folks,
Just to share some informal finding...
I'm writing (slowwwwwly) a DirectX WinRT binding: http://directwinrt.codeplex.com/[^]
 
I just implemented mouse picking (got to blog about it real soon!! ^^)
 
Anyway, I did some measurements...
In Sample1 I update 10.000 points in C#. It used to be a C++/CX IList/IVector.
Now I'm doing it in C# with pointers.
Updating 10K points in C# through C++/Cx took about 20.000 ticks
Updating it through pure C# (and pointers ) only took about 3.000 ticks.
Further tweaks were caching the pointer value (there was a method call to get the pointer) and avoid some casting reduced the time to 1.300 ticks.
 
Morale of the story: I was wondering about the performance of calling C++/Cx from C#?
Now I know: for intensive fine grained call into C++, it's still damn expensive!...
My programming get away... The Blog...
DirectX for WinRT/C# since 2013!
Taking over the world since 1371!

GeneralRe: WinRT [C++/Cx to C#] performancememberDan Neely12 Feb '13 - 2:23 
GeneralRe: WinRT [C++/Cx to C#] performancememberSuper Lloyd12 Feb '13 - 2:38 
GeneralRe: WinRT [C++/Cx to C#] performancememberRama Krishna Vavilala12 Feb '13 - 3:04 
GeneralRe: WinRT [C++/Cx to C#] performancesitebuilderNish Sivakumar12 Feb '13 - 3:18 
GeneralRe: WinRT [C++/Cx to C#] performancememberBillWoodruff14 Feb '13 - 20:04 
GeneralRe: WinRT [C++/Cx to C#] performancememberSuper Lloyd14 Feb '13 - 22:21 
General"Bing is a great product"memberEdo Tzumer12 Feb '13 - 1:22 
GeneralRe: "Bing is a great product"memberNemanja Trifunovic12 Feb '13 - 1:33 
QuestionRe: "Bing is a great product"memberMario Majčica12 Feb '13 - 1:39 
AnswerRe: "Bing is a great product"memberS Houghtelin12 Feb '13 - 1:45 
JokeRe: "Bing is a great product"memberMario Majčica12 Feb '13 - 1:47 
GeneralRe: "Bing is a great product"memberS Houghtelin12 Feb '13 - 1:52 
GeneralRe: "Bing is a great product"memberMario Majčica12 Feb '13 - 1:59 
GeneralRe: "Bing is a great product"memberS Houghtelin12 Feb '13 - 2:14 
AnswerRe: "Bing is a great product"memberMario Majčica12 Feb '13 - 3:27 
GeneralRe: "Bing is a great product"memberMark_Wallace12 Feb '13 - 19:55 
AnswerRe: "Bing is a great product"memberMaximilien12 Feb '13 - 1:46 
AnswerRe: "Bing is a great product"mentorKeith Barrow12 Feb '13 - 1:56 

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


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 21 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid