Re: [osg-users] CPU usage - qt application

2011-05-19 Thread Gianni Ambrosio
hybr wrote: Hi, Gianni Ambrosio It can be the case that in old drivers vsync were disabled, and in new ones its enabled by default. OK, it seems I got the point but I have some questions. Basically the monitor refresh rate is 60Hz but the timer to update the widget was 10 milliseconds

Re: [osg-users] CPU usage - qt application

2011-05-19 Thread Gianni Ambrosio
In the meanwhile I found a way to get the screen refresh rate to use as default in the timer. I don't know if there is something helpful in the OSG libs but since nobody answers ... here is the code: DEVMODE lpDevMode; memset(lpDevMode, 0, sizeof(DEVMODE)); lpDevMode.dmSize = sizeof(DEVMODE);

Re: [osg-users] CPU usage - qt application

2011-05-16 Thread Gianni Ambrosio
Looking at the posts It seems somebody uses OSG viewers embedded in Qt widgets. Could you please give me a feedback regarding my problem? Thanks Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39419#39419

Re: [osg-users] CPU usage - qt application

2011-02-23 Thread Gianni Ambrosio
Well, updating the driver works fine. But I have a couple of questions. On my PC (WinXP) at the end of the day I experience the same bad behaviour while if I restart windows the CPU usage is very low. Any explanation for that? Moreover, which is the core problem in OSG related to that? Regards

[osg-users] CPU usage - qt application

2011-02-22 Thread Gianni Ambrosio
Hi All, I found a strange behaviour in a QT application using OSG. On a PC with a NVIDIA Quadro FX 550 gfx card the CPU usage was 50% just running my qt app with an osg Viewer. After several investigation we updated the gfx card drivers to 6.14.12.6705 and the cpu usage magically fell down.