Click or drag to resize
SoDBSetDelaySensorTimeout Method

This sets the timeout value for sensors that are delay queue sensors (one-shot sensors, data sensors).

Namespace: OIV.Inventor
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public static void SetDelaySensorTimeout(
	SbTime t
)

Parameters

t
Type: OIV.InventorSbTime
Remarks

Delay queue sensors are triggered whenever there is idle time. If a long period of time elapses without any idle time (as when there are continuous events to process), these sensors may not be triggered. Setting this timeout value ensures that if the specified length of time elapses without any idle time, the delay queue sensors will be processed anyway.

The default timeout for delay queue sensors is 0.083 seconds. So if delay queue sensors are only triggered by the timeout, then by default the viewer animation can only run at about 12 frames per second. To trigger the delay queue sensors at, for example, 30 frames per second, make this call:

OIV.Inventor.SoDB.SetDelaySensorTimeout(OIV.Inventor.SbTime)( 0.03f );

See Also