|
VR-Engage
2.2
|
Go to the source code of this file.
Classes | |
| class | makVre::DtVreSpawnController |
Namespaces | |
| namespace | makVre |
This file defines the DtVreSpawnController class which extends the base spawn controller to provide performance optimizations for vehicle creation. It modifies the entity creation process to avoid automatically adding spawned vehicles to the Vortex physics world until needed, significantly improving performance when creating vehicles at spawn points.
The controller passes context information indicating that a vehicle is being created at a spawn point, ensuring it doesn't incur the performance penalty of Vortex world integration (which can take seconds) unless the vehicle is actually player controlled. When a player does take control of a spawn-point generated vehicle, the Vortex world integration occurs at that time.