Re: OpenGL driver consumes 100% CPU



On Dec 3, 6:16 pm, David Barrett-Lennard <davi...@xxxxxxxxxxxx> wrote:

Are you double-buffering?

Yes.

There are a lot of issues now. One is that the timer may fire while
you're waiting for the vertical refresh. As a result, you'll wind up
never waiting for the timer to fire and always having something for
your code to do. If there's no vertical retrace interrupt on your
hardware, this will burn CPU like crazy.

You need to turn off vsync. If you're getting tearing, you need to
figure out why -- the vsync is solving the problem the wrong way.

DS
.



Relevant Pages

  • Re: Holes
    ... Ani diFranco's song Fuel is about a cemetery which has temporary holes: ... down beneath the impossible pain of our history ... there's a fire just waiting for fuel ...
    (uk.media.radio.archers)
  • Re: Question regarding timer.
    ... When timer's elapsed event is fire at that time in debug window i am ... Means everytime i am reinitializing timer. ... real problem with this approach either. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Question regarding timer.
    ... When timer's elapsed event is fire at that time in debug window i am ... Means everytime i am reinitializing timer. ... real problem with this approach either. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MDI - disposing of child windows after a period of inavtivity
    ... timer, then restart it). ... timer will only fire when no action has taken place). ... > All child MDI windows are non-updateable... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: send/recive button
    ... versions of Outlook "clicking" the Send/Receive button will fire the ... There's a Win32 API timer function you can call that has more granularity ... You could also search for a 3rd party timer control to use that is packaged ... > I want to fire more than once per second. ...
    (microsoft.public.outlook.program_vba)

Loading