Re: [osg-users] questions about frame rate lock(locking FPS)

2013-06-02 Thread michael kapelko
It's logic is simple: it pauses for the necessary period of time to achieve lower FPS. You can easily take the code from run(), it's about 1-2 lines total. 2013/6/3 Kim JongBum > i found > > viewer.setRunMaxFrameRate(20); > > i found that They are only available when using the run() method. > >

Re: [osg-users] questions about frame rate lock(locking FPS)

2013-06-02 Thread Kim JongBum
i found viewer.setRunMaxFrameRate(20); i found that They are only available when using the run() method. but for our program we use frame() method. is there way i could use the method with frame()? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p

Re: [osg-users] questions about frame rate lock(locking FPS)

2013-05-29 Thread Sebastian Messerschmidt
Hi Kim, I don't think that there is "a library". Personally I think there are two options. 1. See if your driver can do it via vsync. Newer Nvidia drivers for instance allow you to sync to half of the refresh rate. 2. Lock it yourself by issuing the viewer.frame() in the right moment. In order

[osg-users] questions about frame rate lock(locking FPS)

2013-05-29 Thread Kim JongBum
Hi, i m wondering is it possible to lock(maintatin) the frame rate? i mean that we can see the frame rate on the viewer if we press 's'. then i can see the frame rate is around 60 but i would like to lock the frame rate aroud 30 is there some osg library for that? Thanks in advance Cheers,