WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Frame rate issue (https://forum.worldviz.com/showthread.php?t=3633)

kopper 03-16-2011 09:17 AM

Frame rate issue
 
This applies to Vizard R3 as well, but since I'm using R4, I'll post it here.

What is happening is that the application frame rate seems to always go down to the nearest (lower) round value.

I have a complex model that has about 1.5M primitives. Vizard has frustum culling by default, so that if I look away from the model, the frame rate gets up to 60, due to vsync.

The problem is, when I look at the model, the frame rate starts to get lower, which is normal. What's not normal is that the frame rate is always at a round number! from what I could tell, the fps is either at 60, 30, 20 or 15, or within 0.01 of those values.

By adjusting the view frustum such that only a few more primitives are added to the rendered scene, the frame rate goes, immediately, in a matter of 2 or 3 frames, from for example 30 to 20fps. This is really odd, and I wonder if there's any option that sets the frame rate to these fixed numbers, as it would be much better if I could run my app at 26fps, rather then always going down to 20.

Thanks!

farshizzo 03-16-2011 09:24 AM

That's the nature of having vsync enabled. If your frame rate drops below 1/60th of a second, then it will have to wait for every other vertical refresh, which equals 30 fps. And if you drop below 1/30th, then it will make every 3rd refresh, which is 20 fps, and so on...

You can disable vsync with the viz.vsync() command. Your framerate will run as fast as possible, however you might notice tearing in the image.

pankaj bansal 06-09-2013 10:53 AM

hi farshizzo

I am having the same isues. Can I enable triple buffering in vizard to overcome this problem.

Regards
Pankaj Bansal


All times are GMT -7. The time now is 02:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC