Click here to Skip to main content
15,916,463 members
Home / Discussions / Graphics
   

Graphics

 
QuestionNew OpenSceneGraph version release Pin
El Corazon4-Oct-07 3:21
El Corazon4-Oct-07 3:21 
QuestionCreate a 4-bit Bitmap Pin
Mohammad Khodaea1-Oct-07 1:43
Mohammad Khodaea1-Oct-07 1:43 
AnswerRe: Create a 4-bit Bitmap Pin
Dan Neely1-Oct-07 2:16
Dan Neely1-Oct-07 2:16 
AnswerRe: Create a 4-bit Bitmap Pin
El Corazon1-Oct-07 7:04
El Corazon1-Oct-07 7:04 
QuestionImage Processing Application - help required Pin
sunny7430-Sep-07 0:47
sunny7430-Sep-07 0:47 
QuestionDX/OGL scrollable canvas Pin
Stevie26-Sep-07 0:03
Stevie26-Sep-07 0:03 
AnswerRe: DX/OGL scrollable canvas Pin
El Corazon26-Sep-07 5:43
El Corazon26-Sep-07 5:43 
QuestionOpenGL with C++/CLI framerate issue Pin
Xpnctoc22-Sep-07 4:07
Xpnctoc22-Sep-07 4:07 
I'm writing a game using C++/CLI (.NET 2.0), taking full advantage of .NET framework for the ease of writing dialog boxes, menus, etc, but keeping my core logic and OpenGL code in "native" C++. Since my main window is a .NET window, I am using a Timer control to trigger the rendering cycle. Since I want to draw as fast as possible, the timer interval is set to 1 ms.

The test scene I'm rendering contains a measely 10,000 triangles. My framerate is a poor 64fps -- running the executable directly (running in the IDE drops my frames to 5fps). I don't know a lot about graphics cards, but I do know their performance is sometimes measured in millions of triangle per sec. If you do the math, 10k triangles * 64fps = 640,000 triangles per second. NOT GOOD.

I do most of my development on a notebook that has a screen refresh rate of 60Hz. I thought that might be the problem, so I switched over to my tower, which is running an Nvidia GeForce 5900XT and a refresh rate of 75Hz. Guess what? I still get the 64fps rendering rate.

Is this the best I can expect from a .NET-encompassed application? Would switching back to an older technology like MFC or even plain old Win32 programming increase my framerate? I do have a good C++ background with pointers and all that stuff, so I'm not afraid to roll up my sleeves if that's what it takes.

Thanks in advance for your help.
AnswerRe: OpenGL with C++/CLI framerate issue Pin
codemunkeh22-Sep-07 5:36
codemunkeh22-Sep-07 5:36 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc22-Sep-07 7:26
Xpnctoc22-Sep-07 7:26 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
codemunkeh22-Sep-07 11:59
codemunkeh22-Sep-07 11:59 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc22-Sep-07 15:26
Xpnctoc22-Sep-07 15:26 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
El Corazon24-Sep-07 7:45
El Corazon24-Sep-07 7:45 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Jeremy Falcon25-Sep-07 8:29
professionalJeremy Falcon25-Sep-07 8:29 
JokeRe: OpenGL with C++/CLI framerate issue Pin
El Corazon25-Sep-07 12:54
El Corazon25-Sep-07 12:54 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Jeremy Falcon25-Sep-07 12:56
professionalJeremy Falcon25-Sep-07 12:56 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Mark Salsbery25-Sep-07 13:16
Mark Salsbery25-Sep-07 13:16 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
El Corazon25-Sep-07 13:18
El Corazon25-Sep-07 13:18 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Mark Salsbery25-Sep-07 13:32
Mark Salsbery25-Sep-07 13:32 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc26-Sep-07 5:01
Xpnctoc26-Sep-07 5:01 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Mark Salsbery26-Sep-07 5:43
Mark Salsbery26-Sep-07 5:43 
AnswerRe: OpenGL with C++/CLI framerate issue Pin
El Corazon24-Sep-07 6:42
El Corazon24-Sep-07 6:42 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc24-Sep-07 8:45
Xpnctoc24-Sep-07 8:45 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc24-Sep-07 8:51
Xpnctoc24-Sep-07 8:51 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
El Corazon24-Sep-07 9:33
El Corazon24-Sep-07 9:33 

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.