Navigation
API > API/Plugins > API/Plugins/MassLOD
Inheritance Hierarchy
- FMassLODBaseLogic
- TMassLODTickRateController
References
| Module | MassLOD |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassLOD/Public/MassLODTickRateController.h |
| Include | #include "MassLODTickRateController.h" |
Syntax
template<typename TVariableTickChunkFragment, typename FLODLogic>
struct TMassLODTickRateController : public FMassLODBaseLogic
Remarks
Helper struct to control LOD tick rate for each agent, It will add a fragment tag to group the agent of the same LOD together, that way the user can do tick rate logic per chunk.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bShouldSpreadFirstUpdate | Whether or not to spread the first update over the period specified in tick rate member for its LOD | |
| TStaticArray< float, EMassLOD::Max > | TickRates | Tick rate for each LOD |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize
(
const float InTickRate, |
Initializes the LOD trick rate controller, needed to be called once at initialization time (Only when FLODLogic::bDoVariableTickRate is enabled) InTickRate the rate at which entities should be ticked per bInShouldSpreadFirstUpdate over the period specified in InTickRate parameter | |
| bool | ShouldAdjustLODFromCountForChunk
(
const FMassExecutionContext& Context |
Retrieve if it is needed to adjust LOD from the newly calculated count for this chunk | |
| bool | ShouldCalculateLODForChunk
(
const FMassExecutionContext& Context |
Retrieve if it is needed to calculate the LOD for this chunk | |
| bool | UpdateTickRateFromLOD
(
FMassExecutionContext& Context, |
Updates tick rate for this chunk and its entities |