Hi,
I have seen a strange thing about framerate...
I have a complex city where I have 20fps (not optimized yet)...
I set the following:
- Render target implementation = osg::Camera::FRAME_BUFFER
- I attach a RGBA buffer that is the same size as the frame-buffer.
Result:
- Framerate stays at 20fps.
- Colors are written to the frame-buffer.
- Colors are also written to the RGBA surface I attached to the camera.
- I thus have 20fps and two copies of my scene-image.
I set the following:
- Render target implementation = osg::Camera::FRAME_BUFFER_OBJECT
- I attach a RGBA buffer that is the same size as the frame-buffer.
Result:
- Framerate drops to 10fps.
- Colors are written to the RGBA surface I attached to the camera.
- Nothing is written to the frame-buffer.
- I thus have 10fps and only one copy of the scene-image.
So, one mode give me more data, and high framerate while the other mode give me
less data and lower framerate. This sounds odd.
Another test:
- Render target implementation = osg::Camera::FRAME_BUFFER_OBJECT
- I attach a RGBA buffer that is the same size as the frame-buffer.
- I attach another RGBA buffer that is the same size as the frame-buffer.
- I set up the pixel-shaders to output some extra data from the scene to the
second buffer.
Result:
- Framerate stays at 10fps.
- Colors are written to the RGBA surface I attached to the camera.
- The second buffer gets the data I wrote to it.
- Nothing is written to the frame-buffer.
- I thus have 10fps and two copies of the scene-image.
My conclusion:
- I assume that setting FRAME_BUFFER_OBJECT means that the hardware change
to some kind of pipeline that is much slower than normal.
- (I am using a NVIDIA Quadro FX 1500 card).
And my question to you:
- Does anybody know if my conclusion is all that is to it, or is there
something I can do that will speed up things?
Regards,
Viggo
_________________________________________________________________
Finn dine favorittklipp på MSN Video.
http://video.msn.com/?mkt=nb-no&from=HMTAG
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org