ThorstenB [Wed, 23 Mar 2011 22:12:13 +0000 (23:12 +0100)]
Improve subsystem manager's timing statistics
Option to print statistics at run-time.
Convenient filter parameters to show subsystems with jitter or excessive
execution time only.
ThorstenB [Wed, 23 Mar 2011 21:30:42 +0000 (22:30 +0100)]
Keep PropertyList outside global namespace
Avoids conflict with FG's GUI widget "PropertyList"...
(don't use "using..." in header files since namespaces become useless then)
ThorstenB [Sat, 19 Mar 2011 13:48:58 +0000 (14:48 +0100)]
Avoid nuisance sounds in initial update loop.
Stop all "in-transit" sounds effects from triggering in the first update
loop when their initial property value is "1".
ThorstenB [Mon, 7 Mar 2011 18:32:20 +0000 (19:32 +0100)]
Catch dangling property ties.
It's bad when tied properties are not untied before removing the tied property list.
We could try to "untie" the properties in the destructor - but that usually
caused weird mem access errors, since the tied properties will access
a no longer existing object (the very object whose destruction called the
TiedPropertyList destructor...). => so just add a warning and a nagging trap :)
ThorstenB [Fri, 4 Mar 2011 21:50:32 +0000 (22:50 +0100)]
Fix TextureBuilder to work with --fg-aircraft dirs.
Avoid direct use of osgDB to search for files. Using SGModelLib
instead to also search fg-aircraft dirs.
ThorstenB [Sun, 13 Feb 2011 18:23:21 +0000 (19:23 +0100)]
Clear tile cache on (re-)init.
Clearing the cache was disabled to avoid scenery reloading on sim resets,
which is now avoided elsewhere (in FG).
Cache cleaning is now needed to support new option for complete scenery
reloading.
ThorstenB [Thu, 20 Jan 2011 00:06:46 +0000 (01:06 +0100)]
Another place to catch SG exceptions.
SGBinding::fire needs to catch, otherwise exceptions in the event handler
context cause an FG exit (fixes a crash with the route manager dialog).
ThorstenB [Thu, 20 Jan 2011 00:06:46 +0000 (01:06 +0100)]
Another place to catch SG exceptions.
SGBinding::fire needs to catch, otherwise exceptions in the event handler
context cause an FG exit (fixes a crash with the route manager dialog).
Torsten Dreyer [Mon, 17 Jan 2011 18:51:29 +0000 (19:51 +0100)]
Fix bug in SGMisc<T>:: normalizePeriodic()
SGMisc<T>::normalizePeriodic(min,max,value) returned zero for
all values less than min.
Example:
A call of normalizePeriodic(0,twopi(),-pi()) returned zero
where the correct value would be 3*pi().
Torsten Dreyer [Fri, 7 Jan 2011 21:43:46 +0000 (22:43 +0100)]
Add <expression> to animations
Allow complex animation expressions
Example: translate along the y-axis following a sin
function.
<animation>
<type>translate</type>
<axis>
<y>1</y>
</axis>
<expression>
<sin>
<product>
<property>/some/position-norm</property>
<value>6.28</value>
</product>
</sin>
</expression>
</animation>
Tim Moore [Wed, 29 Dec 2010 17:09:23 +0000 (18:09 +0100)]
Issue 110: fix pick animation interaction with effects
Set OVERRIDE and PROTECTED attributes on pick animation state
attributes. Set up attributes and add a colorMode uniform so that the
default shader will take color and alpha values from the
material. Also, add a DotOsg writer method for ConditionNode.
ThorstenB [Fri, 19 Nov 2010 12:33:12 +0000 (13:33 +0100)]
Improved tile cache priority scheme.
Use priorities for loading/unloading.
Maintain an expiry time for each tile.
Replaced "cache lock" by "current view" flag.
Tim Moore [Wed, 17 Nov 2010 07:52:32 +0000 (08:52 +0100)]
eliminate property node path cache
The property path cache was making very little difference in practice
and made the eventual goal of having the property tree be thread safe
for readers more difficult to attain.