Robert Osfield
0fb865bc4f
Fixed typo
2010-05-18 17:58:35 +00:00
Robert Osfield
07e43822e6
Added better invalidation of the inactive and active PageLOD lists when children are invalidated when parents are removed.
2010-05-18 15:33:59 +00:00
Robert Osfield
554adfc8e6
Refactored Observer/ObserverNodePath and DatabasePager to improve their robustness.
2010-05-14 12:24:13 +00:00
Robert Osfield
7ee549bb06
From J.P. Delport, Fix for invalid iterator dereference in DatabasePager.
2010-04-15 12:51:41 +00:00
Robert Osfield
31ec835002
From Jason Beverage, "Here is a small fix to the DatabasePager to fix a crash if you were
...
running with the OSG_NOTIFY_LEVEL set to INFO.
An iterator was being erased, and then referenced to display a
message. Just changed it to display the message first, then erase."
2010-04-15 11:45:10 +00:00
Robert Osfield
9045d03a0b
Removed the setting of the DatabasePager thread affinity, and moved the setting of the DatabasePager thread priotity to after the creation of the threads
2010-04-15 11:02:22 +00:00
Robert Osfield
1319e270f6
Refactored the way that the RequestQueue's are pruned and highest prioty items taken from them so the operation is
...
now O(n) rather than O(nlogn) where n is the number of requests. The refactoring also cleans up the access of the
request lists so that the code is more readable/maintainable.
2010-03-24 14:27:00 +00:00
Robert Osfield
0661901016
disabled timing debug info
2010-03-17 11:35:52 +00:00
Robert Osfield
950d282f55
From Vincent Bourdier, addition of out of memory read result.
2010-03-10 14:28:18 +00:00
Robert Osfield
1a1b7bd7a1
Moved QWebViewImage and QGraphicsViewAdapter into new osgQt utility library.
2010-03-04 12:15:35 +00:00
Robert Osfield
9f8a4be2cd
Refactored DatabasePager so that it nolonger takes ref_ptr<PagedLOD>, but instead uses a custom version of observer_ptr<>.
...
This change should make it possible to delete PagedLOD's independantly from the DatabasePager, and also prevent issues of
consistency of the pager when subgraphs when are cached elsewhere in the application such as in the Registry filecache.
2010-03-03 16:40:19 +00:00
Robert Osfield
bff9b565df
Completed usage of ObserverNodePath to fix longstanding crash that occurred when nodes in parental chain of a newly loaded node had been deleted.
2010-02-18 21:21:59 +00:00
Robert Osfield
f17e401347
Convert NOTIFY to OSG_NOTIFY to avoid problems with polution of users apps with the NOTIFY macro
2010-02-10 12:44:59 +00:00
Robert Osfield
6ab51c7c47
Added pruning of requests that haven't been reissued since the last frame.
2010-02-10 11:21:45 +00:00
Robert Osfield
8d8037ee12
Converted osg::notify usage to NOTIFY
2010-02-09 18:24:37 +00:00
Robert Osfield
f8fc4f66a8
Added RequestQueue destructor and DatabaseRequest::invalidate() and valid() methods to allow the
...
destruction of RequestQueue to remove any pointers held in DatabaseRequest attached to the scene graph, and to
prevent their subsequent use in cases where the scene graph is attached to a new DatabasePager.
2010-01-22 20:47:39 +00:00
Robert Osfield
5f61d14dc6
Fixed support for compiling VBO's
2009-12-09 13:55:10 +00:00
Robert Osfield
370deba546
<iterator>, <stdlib.h> and <ctype.h> includes required for QNX compiler
2009-11-17 14:06:07 +00:00
Robert Osfield
72ff1f40f9
From Paul Martz, changes for compiling against OpenGL 3.x
2009-11-03 16:34:54 +00:00
Robert Osfield
c8901d77a2
Fixed build aginst GLES1 and GLES2
2009-10-27 19:17:38 +00:00
Robert Osfield
df9385ac19
Moved the updating and expiry of the Registry object cache from DatabasePager into osgViewer::Viewer/CompositeViewer.
2009-08-05 11:06:53 +00:00
Robert Osfield
956bf3e395
Quitened down debug info.
2009-07-15 15:28:19 +00:00
Robert Osfield
a58ea5c87c
Fixed warning
2009-06-26 08:14:09 +00:00
Robert Osfield
06abd75198
From Mathias Froehlich, "We are currently getting issues with locale settings and some osg plugins.
...
Therefore I have changed all the occurances of atof by asciiToFloat or
asciiToDouble.
I believe that it is safe to do so at least for all the plugins.
Included here are also asciiToFloat conversion of environment variables. One
might argue that these should be locale dependent. But IMO these should be
set and interpreted by osg independent of the current locale.
"
2009-06-25 16:07:49 +00:00
Robert Osfield
0ad020bf16
From Ulrich Hertlein, "please find attached some typo fixes in DatabasePager and a tweak to only print the addLoadedDataToSceneGraph stats when some work was actually done."
2009-06-25 13:00:01 +00:00
Robert Osfield
ee1f5da3b6
Commented out debug messages
2009-05-11 14:11:35 +00:00
Robert Osfield
f939ea731e
Moved Registry::ReadFileCallback + WriteFileCallback, and osgDB::ReaderWriter::Options into their own separate Options file and into the osgDB namespace.
...
Introduced a new callback osgDB::FindFileCallback that overrides the default behavior of findDataFile/findLibraryFile.
Introduced support for assigning ReaderWriter::Options directory to PagedLOD.
Introduced new osgDB::FileLocationCallback for assistancing the DatabasePager to know when a file is hosted on a local or remote file system.
2009-05-11 11:39:12 +00:00
Robert Osfield
b7b065abe3
Refactored the Registry::ReadFileCallback, WriteFileCallback and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace.
...
Introduced a new FindFileCallback to Registry to compliement the existing ReadFileCallback and WriteFileCallback.
Added support for assign Find, Read and WriteFileCallbacks to osdDB::Options to enable plugins/applications to override the callbacks just for that
read/write call and any nested file operations
2009-05-09 08:49:27 +00:00
Robert Osfield
c6a4fc6680
Fixed handling of case of no graphics contexts being assigned
2009-04-21 10:13:19 +00:00
Robert Osfield
f156454ccf
Fixed to DatabasePager::getRequestsInProgress(), merged from:
...
svn merge -r 9734:9735 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/branches/OpenSceneGraph-2.8
2009-02-09 22:33:51 +00:00
Robert Osfield
1153ea5feb
Warnings fixes for VS.
2009-02-02 20:35:19 +00:00
Robert Osfield
6b48e4b1ea
From Rick Appleton, "In DatabasePager.cpp I believe there's a copy-paste ommission. A little bit further down the file where the Drawables are compiled the code is similar to how I have fixed the code here for the StateSets. If the DatabasePager thread is supposed to pre-compile things, it will call the compileGLObjects such that compileAll will be true. However, when compiling StateSets compileAll isn't currently checked."
2009-01-26 10:35:16 +00:00
Robert Osfield
33db349781
Upped notification level of timing stats
2009-01-23 09:22:31 +00:00
Robert Osfield
fa499dc55f
From Andy Skinner, fixes for Solaris build
2009-01-09 12:17:40 +00:00
Robert Osfield
6bf59ffae9
Fixed warnings
2009-01-07 12:27:45 +00:00
Robert Osfield
1cd6541bfd
Improved the effectiveness of the new max target number PageLOD's
2008-12-17 22:52:36 +00:00
Robert Osfield
c01ed02147
Fixed inactive PagedLOD removal code
2008-12-17 16:58:23 +00:00
Robert Osfield
8a6e04b84d
Introduce NodeVisitor::className and libraryName()
2008-12-17 12:13:15 +00:00
Robert Osfield
ca3fe5d352
Reduced the default number _targetMaximumNumberOfPageLOD to 300 to keep the memory consumption on large databases a bit lower.
2008-12-15 16:41:34 +00:00
Robert Osfield
25f4baf990
Made the folowing changes to make the DatabasePager more restrained in its memory consumption, and to improve the speed of merging of tiles (at the potential cost of extra frame drops).
...
Set Made DatabasePager TargetMaximumNumberOfPageLOD technique the be the default with a default target number of PagedLOD of 500.
Set DatabasePager DoPreCompile to OFF by default.
2008-12-15 13:56:38 +00:00
Robert Osfield
315aeeb557
Where possible moved redundent C header includes from headers to source files
2008-12-12 18:47:30 +00:00
Robert Osfield
b2762c4788
Added DatabasePager::getRequestsInProgress() that return true if there are still tiles to load.
...
Added DatabasePager::setTargetMaximumNumberOfPageLOD(..) that sets the target number of PagedLOD to try and maintain
2008-11-26 11:12:19 +00:00
Robert Osfield
5471bb9932
Added --help-env docs for OSG_MAX_PAGEDLOD
2008-10-27 17:42:04 +00:00
Robert Osfield
b28612bce2
Various warning fixes
2008-10-27 13:09:43 +00:00
Robert Osfield
0ff3f48693
Improved the support for no pre compile, and configuring the number of threads in the DatabasePager.
2008-10-26 22:22:38 +00:00
Robert Osfield
b2ffdacd80
Changed timing stats to osg::INFO level
2008-10-24 09:49:55 +00:00
Robert Osfield
c1fd14fb2c
Introduced new method of management the number of PagedLOD active, by using
...
a capping the number of PagedLOD to a sepcified maximum, with pruning of inactive
PagedLOD when the total number of inactive and active PagedLOD goes above the maximum.
To enable the mode set the env var OSG_MAX_PAGEDLOD to a value something like 1000.
2008-10-23 16:33:14 +00:00
Robert Osfield
24eb2f6c43
Introduce osgDB::FileCache, and updated osgfilecache and DatabasePager to use it.
2008-10-20 16:24:57 +00:00
Robert Osfield
ff8c6aa32b
From Mathias Froehlich, build fixes
2008-10-07 12:31:42 +00:00
Robert Osfield
8c98220878
Added the ability to release OpenGL objects in PagedLOD subgrphs that are no longer being rendered.
2008-10-07 11:35:41 +00:00