#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
hi farshizzo
I am having the same isues. Can I enable triple buffering in vizard to overcome this problem. Regards Pankaj Bansal |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about Vizard Expiration Timer Rate | mizutani_jun | Vizard | 2 | 02-23-2011 10:13 PM |
how frame rate varies? | chepotenza | Precision Position Tracker (PPT) | 4 | 04-05-2009 04:18 PM |
quad buffered frame rate confusion | michaelrepucci | Vizard | 11 | 09-17-2008 09:55 AM |
Linking problems with Live Character | Frank Verberne | Vizard | 5 | 06-04-2008 12:42 PM |
frame rate lock? | kgarr | Vizard | 1 | 02-23-2006 01:34 PM |