Re: [osg-users] frame rate faster than monitor vsync?
We're doing computations with the 3D engine, getting images, color histograms, etc. at different model parameter settings, 1 change for each frame, so the faster we can render the better. Can one change vsync dynamically, at any time, just by changing vsync setting in the traits? bob -Original Message- From: Paul Speed [mailto:psp...@progeeks.com] Sent: Saturday, July 11, 2009 9:01 PM To: OpenSceneGraph Users Subject: Re: [osg-users] frame rate faster than monitor vsync? I have to be pedantic here... the eye can most _certainly_ detect movement beyond 60 hz. But there is no point in displaying faster than that if your display can't render faster than 60 hz. There are good reasons to do so, though. For example, to test rendering speed to get good benchmarking for seeing how much CPU your rendering code is wasting. Alternately, there are certain situations where one may be driving sensing equipment that wants higher refresh. Of course, then the display is expecting that refresh or whatever is receiving the output... so we still come back to driving your display at what your display expects. Or benchmarking. -Paul Philip Taylor wrote: Wyatt, Out of very idle curiosity, why would you render at 2KHz when the eye can't really detect movement beyond 60Hz? Would it just be for rendering individual frames for a movie? PhilT -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org]on Behalf Of Wyatt Earp Sent: 11 July 2009 19:08 To: OpenSceneGraph Users Subject: Re: [osg-users] frame rate faster than monitor vsync? I have renderered in excess of 2 KHz on ocassion. Wyatt On 7/11/09, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it's possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of tearing. Can I get 600 fps by turning off vsync (or something else, it didn't work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] frame rate faster than monitor vsync?
Hi all, here's how I'm turning off vsync and it's not having any effect. Any ideas. This setup is based on one of the examples, C++ / Windows / Vista. I have dual monitors. Would that make any difference? Thanks, Bob // Local Variable to hold window size data RECT rect; // Create the viewer for this window m_pViewer = new CTOSOM_OSGViewer(this); // Add a Stats Handler to the viewer m_pViewer-addEventHandler(new osgViewer::StatsHandler); m_pViewer-addEventHandler(new TOSOM_OSGkeyboardEventHandler); // Get the current window size ::GetWindowRect(m_hWnd, rect); // Init the GraphicsContext Traits osg::ref_ptrosg::GraphicsContext::Traits traits = new osg::GraphicsContext::Traits; // Init the Windata Variable that holds the handle for the Window to display OSG in. osg::ref_ptrosg::Referenced windata = new osgViewer::GraphicsWindowWin32::WindowData(m_hWnd); // Setup the traits parameters traits-x = 0; traits-y = 0; traits-width = rect.right - rect.left; traits-height = rect.bottom - rect.top; traits-windowDecoration = false; traits-doubleBuffer = true; traits-sharedContext = 0; traits-setInheritedWindowPixelFormat = true; traits-inheritedWindowData = windata; traits-vsync = false; // Create the Graphics Context osg::GraphicsContext* gc = osg::GraphicsContext::createGraphicsContext(traits.get()); // Init a new Camera (Master for this View) osg::ref_ptrosg::Camera camera = new osg::Camera; // RLY set CullingMode camera-setCullingMode(osg::CullSettings::NO_CULLING); // Assign Graphics Context to the Camera camera-setGraphicsContext(gc); // Set the viewport for the Camera camera-setViewport(new osg::Viewport(traits-x, traits-y, traits-width, traits-height)); // RLY - set ortho projection camera-setProjectionMatrixAsOrtho(-5000, 5000, -5000, 5000, -5000, 5000); // Add the Camera to the Viewer m_pViewer-addSlave(camera.get()); // Add the Camera Manipulator to the Viewer m_pViewer-setCameraManipulator(m_pswitchManipulator.get()); // Set the Scene Data m_pViewer-setSceneData(m_pRoot.get()); // Realize the Viewer m_pViewer-realize(); } -Original Message- From: Ulrich Hertlein [mailto:u.hertl...@sandbox.de] Sent: Saturday, July 11, 2009 8:26 AM To: OpenSceneGraph Users Subject: Re: [osg-users] frame rate faster than monitor vsync? Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it’s possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of “tearing.” Can I get 600 fps by turning off vsync (or something else, it didn’t work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] frame rate faster than monitor vsync?
Maybe the scene isn't being rendered for human eyes. Wyatt On 7/11/09, Paul Speed psp...@progeeks.com wrote: I have to be pedantic here... the eye can most _certainly_ detect movement beyond 60 hz. But there is no point in displaying faster than that if your display can't render faster than 60 hz. There are good reasons to do so, though. For example, to test rendering speed to get good benchmarking for seeing how much CPU your rendering code is wasting. Alternately, there are certain situations where one may be driving sensing equipment that wants higher refresh. Of course, then the display is expecting that refresh or whatever is receiving the output... so we still come back to driving your display at what your display expects. Or benchmarking. -Paul Philip Taylor wrote: Wyatt, Out of very idle curiosity, why would you render at 2KHz when the eye can't really detect movement beyond 60Hz? Would it just be for rendering individual frames for a movie? PhilT -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org]on Behalf Of Wyatt Earp Sent: 11 July 2009 19:08 To: OpenSceneGraph Users Subject: Re: [osg-users] frame rate faster than monitor vsync? I have renderered in excess of 2 KHz on ocassion. Wyatt On 7/11/09, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it’s possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of “tearing.” Can I get 600 fps by turning off vsync (or something else, it didn’t work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] frame rate faster than monitor vsync?
Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it’s possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of “tearing.” Can I get 600 fps by turning off vsync (or something else, it didn’t work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] frame rate faster than monitor vsync?
I have renderered in excess of 2 KHz on ocassion. Wyatt On 7/11/09, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it’s possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of “tearing.” Can I get 600 fps by turning off vsync (or something else, it didn’t work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] frame rate faster than monitor vsync?
Wyatt, Out of very idle curiosity, why would you render at 2KHz when the eye can't really detect movement beyond 60Hz? Would it just be for rendering individual frames for a movie? PhilT -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org]on Behalf Of Wyatt Earp Sent: 11 July 2009 19:08 To: OpenSceneGraph Users Subject: Re: [osg-users] frame rate faster than monitor vsync? I have renderered in excess of 2 KHz on ocassion. Wyatt On 7/11/09, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it’s possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of “tearing.” Can I get 600 fps by turning off vsync (or something else, it didn’t work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] frame rate faster than monitor vsync?
I have to be pedantic here... the eye can most _certainly_ detect movement beyond 60 hz. But there is no point in displaying faster than that if your display can't render faster than 60 hz. There are good reasons to do so, though. For example, to test rendering speed to get good benchmarking for seeing how much CPU your rendering code is wasting. Alternately, there are certain situations where one may be driving sensing equipment that wants higher refresh. Of course, then the display is expecting that refresh or whatever is receiving the output... so we still come back to driving your display at what your display expects. Or benchmarking. -Paul Philip Taylor wrote: Wyatt, Out of very idle curiosity, why would you render at 2KHz when the eye can't really detect movement beyond 60Hz? Would it just be for rendering individual frames for a movie? PhilT -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org]on Behalf Of Wyatt Earp Sent: 11 July 2009 19:08 To: OpenSceneGraph Users Subject: Re: [osg-users] frame rate faster than monitor vsync? I have renderered in excess of 2 KHz on ocassion. Wyatt On 7/11/09, Ulrich Hertlein u.hertl...@sandbox.de wrote: Hi Bob, On 10/7/09 9:05 PM, Bob Youmans wrote: Hi, does anyone know if it’s possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of “tearing.” Can I get 600 fps by turning off vsync (or something else, it didn’t work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? If you turn off vsync then OSG will render as fast as possible, without any artificial limitation. There's no 100 Hz OSG limit that I'm aware of except maybe in the DB pager. Sure you can get 600 fps if you're willing to accept tearing (or render offscreen), even my GeForce 8600M GT laptop gives me over 1000 fps for moderately complex models. And yes, the graphics card is obviously involved (the faster the better) and so is the driver. If you're not seeing more than vsync fps then the reason is most likely due to setup, e.g. a driver settings forcing vsync on or __GL_SYNC_TO_VBLANK being set on Linux. Cheers, /ulrich ___ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] frame rate faster than monitor vsync?
Hi, does anyone know if it's possible to run faster than the 60Hz vsync or 100Hz osg limit, if computational performance is the ultimate goal even at the expense of tearing. Can I get 600 fps by turning off vsync (or something else, it didn't work on my box)? Is the graphics card driver/model involved? How can you tell which ones will work without actually buying it? Thanks, Bob ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org