Re: [eq-dev] CPU usage

5 views
Skip to first unread message

Stefan Eilemann

unread,
Nov 13, 2012, 2:46:44 AM11/13/12
to eq-...@equalizergraphics.com

On 12. Nov 2012, at 23:06, rarum [via Software] <ml-node+s171...@n2.nabble.com> wrote:

> Hello i have little problem when I run exaple osgScaleViewer or seqPly,eqPly , eqHello than this program using my CPU on 100%.

Do you have VSync enabled? From your problem description I guess not. This is a general OpenGL problem.

If you stop the camera, CPU usage should drop to 0% since eqPly is event-driven.


HTH,

Stefan.



--
View this message in context: http://software.1713.n2.nabble.com/CPU-usage-tp7581702p7581703.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Stefan Eilemann

unread,
Nov 13, 2012, 2:20:55 PM11/13/12
to eq-...@equalizergraphics.com

On 13. Nov 2012, at 10:21, rarum [via Software] <ml-node+s171...@n2.nabble.com> wrote:

> so I make timer in osgScaleviewer I get 20 miliseconds per frame it is ~60 FPS ....and when I turn on statistics in OSG i see about 60 FPS I think other working thread making 100% on CPU .....vsync is default on ? ( i read this in book EQ WINDOW IATTR HINT SWAPSYNC deafult ON ) which thread I must sleep to reduce CPU using ? I see on Config::handleEvent metod and this is working still independent of frame but when I put sleep into this metod than aplication work incorectly ....handling working bad and response for user input was delayed or none . How to set some working latency or ......?

I don't know which thread is eating your CPU. You'll have to profile this yourself. Seems that a free-running render thread is not your issue.

The event handling is executed from the main loop, and blocking there is certainly a bad idea.


HTH,

Stefan.



--
View this message in context: http://software.1713.n2.nabble.com/CPU-usage-tp7581702p7581721.html
Reply all
Reply to author
Forward
0 new messages