Click here to Skip to main content
15,895,011 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: C++/CLI OpenGL performance Pin
Luc Pattyn22-Sep-07 5:40
sitebuilderLuc Pattyn22-Sep-07 5:40 
GeneralRe: C++/CLI OpenGL performance Pin
Xpnctoc22-Sep-07 10:34
Xpnctoc22-Sep-07 10:34 
AnswerRe: C++/CLI OpenGL performance Pin
Mark Salsbery22-Sep-07 8:32
Mark Salsbery22-Sep-07 8:32 
GeneralRe: C++/CLI OpenGL performance [modified] Pin
Xpnctoc22-Sep-07 10:29
Xpnctoc22-Sep-07 10:29 
QuestionRe: C++/CLI OpenGL performance Pin
Unbe Kant22-May-09 13:55
Unbe Kant22-May-09 13:55 
AnswerRe: C++/CLI OpenGL performance Pin
Xpnctoc22-May-09 19:07
Xpnctoc22-May-09 19:07 
GeneralRe: C++/CLI OpenGL performance Pin
Unbe Kant22-May-09 21:43
Unbe Kant22-May-09 21:43 
GeneralRe: C++/CLI OpenGL performance Pin
Xpnctoc23-May-09 3:10
Xpnctoc23-May-09 3:10 
That depends on exactly what type of code.

As far as my original post goes, the answer is no, I don't believe it's any slower. But my game is using "mixed mode" programming, and all of my graphics calls are technically unmanaged. What was slowing me down was the use of a timer to regulate the rendering loop, which I never did in strictly unmanaged applications. In other words, I got myself confused.

There are, of course, managed graphics library wrappers (i.e., in C#). I haven't played with those much, but I would expect them to be a little slower just because they have to go through the extra step to convert their managed calls into unmanaged calls to the native OpenGL API anyway.

One more thing to be aware of, though it may be a little off topic. The answer to your question outside of graphics programming can be a definitive "yes"! For instance, invoking the Sort() method on a System::Collections::Generic::List class is WAY slower than a hand-coded, native mode Quick Sort.

This is why I'm writing my game in mixed mode. I use .NET to make life easier as far as pop-up messages, dialog boxes, etc (if you've ever used MFC you know what a pain that can be). But all of my core gaming logic and graphics calls are written in unmanaged classes to avoid as much "middle-man" junk as I can.
GeneralRe: C++/CLI OpenGL performance Pin
Unbe Kant23-May-09 4:15
Unbe Kant23-May-09 4:15 
QuestionUsing C++.net interface in C# Pin
Sandeep Datta22-Sep-07 1:00
Sandeep Datta22-Sep-07 1:00 
AnswerRe: Using C++.net interface in C# Pin
Mark Salsbery22-Sep-07 8:37
Mark Salsbery22-Sep-07 8:37 
GeneralRe: Using C++.net interface in C# Pin
Sandeep Datta22-Sep-07 20:23
Sandeep Datta22-Sep-07 20:23 
Questionvector of class instances within class itself as a data member Pin
Thanks for all the fish21-Sep-07 21:18
Thanks for all the fish21-Sep-07 21:18 
AnswerRe: vector of class instances within class itself as a data member Pin
Luc Pattyn22-Sep-07 1:28
sitebuilderLuc Pattyn22-Sep-07 1:28 
QuestionCopying control events Pin
earlgraham20-Sep-07 12:33
earlgraham20-Sep-07 12:33 
AnswerRe: Copying control events Pin
George L. Jackson20-Sep-07 13:38
George L. Jackson20-Sep-07 13:38 
QuestionCalling a Click Event - dynamically Pin
earlgraham20-Sep-07 11:36
earlgraham20-Sep-07 11:36 
AnswerRe: Calling a Click Event - dynamically Pin
Mark Salsbery20-Sep-07 13:02
Mark Salsbery20-Sep-07 13:02 
QuestionListview horizontal scroll bar Pin
kani9819-Sep-07 13:37
kani9819-Sep-07 13:37 
AnswerRe: Listview horizontal scroll bar Pin
Mark Salsbery19-Sep-07 15:10
Mark Salsbery19-Sep-07 15:10 
GeneralRe: Listview horizontal scroll bar Pin
kani9820-Sep-07 8:52
kani9820-Sep-07 8:52 
GeneralRe: Listview horizontal scroll bar Pin
Mark Salsbery20-Sep-07 9:06
Mark Salsbery20-Sep-07 9:06 
GeneralRe: Listview horizontal scroll bar Pin
Mark Salsbery20-Sep-07 9:14
Mark Salsbery20-Sep-07 9:14 
QuestionHow do you populate DataGridControl cell? Pin
BuckBrown19-Sep-07 11:52
BuckBrown19-Sep-07 11:52 
AnswerRe: How do you populate DataGridControl cell? Pin
George L. Jackson19-Sep-07 13:59
George L. Jackson19-Sep-07 13:59 

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.