Hi zach,

On 8/22/06, Zach Deedler <[EMAIL PROTECTED]> wrote:
Hello again,
 
Now I have OSG_DO_PRE_COMPILE=OFF I have some questions:
  1. What does OSG_DO_PRE_COMPILE=ON do?

The database pager is designed to load balance the creation and download of OpenGL objects, it achieves this by alloting a time slice to download and deletion of OpenGL objects, in this time slice is download as many as it has time for but no more, any remaining OpenGL objects then have to be deferred to be downloaded on the next frame.  Once all the OpenGl objects for a newly loaded subgraph have been downloaded its safe to merge it with the main subgraph.

If you switch off this precompile you cause the OSG's normal draw traversal to do the work of downloading all OpenGL objects in a single frame, this significinatly increases the chances of breaking frame.

  1. How come paged files are not deleted any more with OSG_DO_PRE_COMPILE=OFF?  (When AnimationPath loops back to the beginning the paging thread becomes idle forever, and memory usage is high)

The behavior should be no different w.r.t expiring old subgraphs and deleting them. As such I don't have any explanation what might be happening at your end.  Pehaps the delete of OpenGL objects isn't happening as it should.

  1. What side effects do I get with OSG_DO_PRE_COMPILE=OFF?  Performance hits?

Bascially frame drops each time a new subgraph is merged.

Robert.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to