Re: OpenGL driver consumes 100% CPU



On Dec 2, 10:17 am, David Barrett-Lennard <davi...@xxxxxxxxxxxx>
wrote:

You claim there's no point bothering to switch to the idle process.
Of course but so what? How is such a scenario relevant to my case
where there is useful low priority, on going work to be done by the
CPU?

Unfortunately, one most operating systems, priority is too coarse a
tool. The operating system presumes that if a higher-priority thread
is ready-to-run, you would prefer it to run that thread. You've given
your higher priority thread an effectively unlimited amount of work to
do, so it's not surprising that your lower priority threads get
starved.

I'm aware that the call to glFinish is not required.   I was
interested in whether anyone could say why it causes both processors
to be fully utilised.

Because you've force the rendering engine to tell you when it's done,
so it can't stop running. And you are waiting for it, so you can't
stop running.

Are you double-buffering?

DS
.



Relevant Pages

  • OSBENCH
    ... Time from a lower priority thread calling LeaveCS to a higher priority ... EnterCriticalSection traditional with priority inversion:Time ...
    (microsoft.public.windowsce.platbuilder)
  • Re: OpenGL driver consumes 100% CPU
    ... where there is useful low priority, on going work to be done by the ... your higher priority thread an effectively unlimited amount of work to ... commands piped to the video card to indicate "end of frame". ... Presumably if I want to display 10 windows on a single processor ...
    (comp.programming.threads)
  • Re: Polling, Interrupts, DMA, Synchronous, Asynchronous I/O Definitions
    ... Bumping up the priority of a task does not necessarily make it ... higher priority thread is locking out a lower priority thread ... nightclub...the bouncer at the door makes everyone queue to get ...
    (alt.lang.asm)
  • Re: CriticalSection & Priority Inversion problem
    ... > Can the following scenario cause a priority inversion ... .Here i think high priority thread will pre- ... Priority plays no role in deadlock. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Are Events fair?
    ... You mean that a higher priority thread became runnable (wait condition ... Note that this is not the only core windows feature to ...
    (microsoft.public.win32.programmer.kernel)

Loading