[PB 5.30] OpenGL gadget using almost all CPU/GPU power

Windows specific forum
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

[PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post 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.

Image
Image

Is this feature or a bug?

With my best,

Bruno
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post 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?
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post 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?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post by eesau »

Is vsync enabled? If not, try enabling it.
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post 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...
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post by doctorized »

The graphs in the pictures are made by you?
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post by bbanelli »

doctorized wrote:The graphs in the pictures are made by you?
ProcessExplorer
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Re: [PB 5.30] OpenGL gadget using almost all CPU/GPU power

Post by doctorized »

bbanelli wrote:ProcessExplorer
OK. I was hoping it was hand made....
Post Reply