Page 1 of 1
[PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Wed Jul 23, 2014 11:06 pm
by bbanelli
Greetings,
OpenGL gadget demo uses lots of CPU and virtually all available GPU power on Windows 7 with i5-4440 and ATI R7 240? For example, much sofisticated Ogre3D examples are using nowhere close to this.
Is this feature or a bug?
With my best,
Bruno
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Thu Jul 24, 2014 7:00 am
by Samuel
Not sure about my GPU usage, but my CPU usage is next to nothing when I use the OpenGL gadget.
Does you're repeat:until have a WaitWindowEvent() or Delay() in it?
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Thu Jul 24, 2014 9:06 am
by bbanelli
Samuel wrote:Not sure about my GPU usage, but my CPU usage is next to nothing when I use the OpenGL gadget.
Does you're repeat:until have a WaitWindowEvent() or Delay() in it?
Everything seems to be fine with the code, since it, as you have said, works just fine on other computers, and I have compiled and tried it to confirm that.
But, for example, OpenGL cube example from the "Sources - Advanced" part of PB examples has minimal hardware requirements on the very same computer where OpenGL gadget from example in documentation still produces loads as shown above.
Strange. How can I debug it more thoroughly to see why that happens?
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Thu Jul 24, 2014 11:31 am
by eesau
Is vsync enabled? If not, try enabling it.
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Fri Jul 25, 2014 8:58 pm
by bbanelli
eesau wrote:Is vsync enabled? If not, try enabling it.
No, it didn't help, I tried forcing.
No other examples exhibits such behavior. Quite strange, in any case...
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Sun Sep 21, 2014 1:45 pm
by doctorized
The graphs in the pictures are made by you?
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Sun Sep 21, 2014 6:52 pm
by bbanelli
doctorized wrote:The graphs in the pictures are made by you?
ProcessExplorer
Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power
Posted: Mon Sep 22, 2014 1:27 pm
by doctorized
OK. I was hoping it was hand made....