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