Click here to Skip to main content
15,924,195 members
Home / Discussions / Graphics
   

Graphics

 
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 
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 
"Goto" statement. Laugh | :laugh:

I actually considered using the Paint event, but for some reason I got all paranoid that tying up the paint event would prevent other events from firing, effectively locking out the menu system, etc. Plus I'm not rendering to the form directly. The form houses a "System::NativeWindow" instance, which is where the rendering is actually done.

But I am doing something similar now, and it has boosted the framerate substantially:

<br />
void MyRenderingWindow::Shown(System::Object^ sender, System::EventArgs^ e)<br />
{<br />
  while (Form::Created)<br />
  {<br />
    if (bDataAvailable)<br />
      RenderScene();<br />
    Application::DoEvents();<br />
  }<br />
}<br />


I guess it's basically the same idea, just a little different approach. I'm now pulling between 80-110fps on my notebook, which is what I was getting for a similar application I wrote with VC++6/MFC.

Interestingly, my tower refuses to budge over 75fps. My graphics card is weird and has some kind of limiter that ties the glFlush() command directly to the refresh rate, which is set at 75Hz right now -- the most my monitor supports. I tried knocking the refresh rate to 60Hz, and my app limits itself to 60fps. I'll have to figure out how to override that garbage. There's no way a stock notebook graphics card should outperform a $250 GeForce card!!!Mad | :mad:
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 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
Xpnctoc24-Sep-07 10:02
Xpnctoc24-Sep-07 10:02 
GeneralRe: OpenGL with C++/CLI framerate issue Pin
El Corazon24-Sep-07 11:15
El Corazon24-Sep-07 11:15 
AnswerRe: OpenGL with C++/CLI framerate issue Pin
Jeremy Falcon25-Sep-07 8:04
professionalJeremy Falcon25-Sep-07 8:04 
AnswerRe: OpenGL with C++/CLI framerate issue Pin
Jeremy Falcon25-Sep-07 8:06
professionalJeremy Falcon25-Sep-07 8:06 

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.