My framerate is so high the rendering gets choppy! Lol

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
toglia
Gnome
Posts: 336
Joined: Sat Dec 08, 2007 4:28 am
Location: Canada
x 7

My framerate is so high the rendering gets choppy! Lol

Post by toglia »

I know this maybe has nothing to do with ogre (that's why I post here). It is somewhat funny actually.

When rendering very simple scenes, even some of the ogre samples, the window gets extremely choppy meaning the image gets updated very irregularly, looks like it's stuck, but fps are actually very high, around 2500 in my case. OIS input get choppy too. Anyway it's not a big deal cause everything returns to normal when fps lower to reasonable velocities. It also disappears when turning vsync on.

This happens on Ubuntu 11 with an Nvidia geforce 275 gtx and of course the latest official Nvidia drivers (275.21) which by the way is the only driver that can make my autodesk maya work.

Just sharing...
User avatar
Zonder
Ogre Magi
Posts: 1176
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: My framerate is so high the rendering gets choppy! Lol

Post by Zonder »

yeah this is what vsync is for to slow down the rendering :)
There are 10 types of people in the world: Those who understand binary, and those who don't...
User avatar
madmarx
OGRE Expert User
OGRE Expert User
Posts: 1671
Joined: Mon Jan 21, 2008 10:26 pm
x 51

Re: My framerate is so high the rendering gets choppy! Lol

Post by madmarx »

Dont worry : it is the same on windows :) . This is why I turn vsync when not in fullscreen mode for my tutorials. What is more, everybody gets the same framerate that way.
Tutorials + Ogre searchable API + more for Ogre1.7 : http://sourceforge.net/projects/so3dtools/
Corresponding thread : http://www.ogre3d.org/forums/viewtopic. ... 93&start=0
User avatar
Zonder
Ogre Magi
Posts: 1176
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: My framerate is so high the rendering gets choppy! Lol

Post by Zonder »

also there is no reason to go above the monitors refresh rate as you never see the frames anyway :)
There are 10 types of people in the world: Those who understand binary, and those who don't...
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5560
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1403

Re: My framerate is so high the rendering gets choppy! Lol

Post by dark_sylinc »

Hi, there's no reason to render faster than the monitor's refresh rate. You're just burning cycles and wasting more power and heat.
Also read this and make sure you understand it.

The reason it gets choppy is because at single precision floating point, 1/2500 = 0.0004. With almost everything being multiplied by 0.0004; some floating point inaccuracies (specially those that accumulate from frame to frame) may start to show up. Insane high framerate can cause this, make sure you provide a framerate cap. At some point theoretically it might be so high that timeSinceLast gets rounded to 0; therefore nothing advances.

And seriously, read it. I mean read it. Don't forget to read it! It will save you a lot of headaches.

Cheers
Dark Sylinc

PS: Another reason (very unlikely) might be that there's an OS bug or HW fault that shows up when 100% resources are being used. Very unlikely.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179

Re: My framerate is so high the rendering gets choppy! Lol

Post by jacmoe »

Hear, hear :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
toglia
Gnome
Posts: 336
Joined: Sat Dec 08, 2007 4:28 am
Location: Canada
x 7

Re: My framerate is so high the rendering gets choppy! Lol

Post by toglia »

dark_sylinc wrote:Hi, there's no reason to render faster than the monitor's refresh rate. You're just burning cycles and wasting more power and heat.
Well yeah, that is reasonable. I want to be green on release! Lol. But when developing I like to keep the track of my fps. I end up writing down how much I gain or loose when adding new assets, shaders, logic code, etc. It makes me very aware of any bottleneck. For instance, just recently I discovered how extremely beneficial it was to use gpu skeletal animations. Or maybe using an expensive shader isn't that hurtful after all. I have learned a lot just by looking at my fps :D