FNavRegenTimeSlicer::EndTimeSliceAndAdjustDuration

Useful when multiple sections of code need to be timesliced per frame using the same time slice duration that do not necessarily occur concurrently.

Windows
MacOS
Linux

References

Module

NavigationSystem

Header

/Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h

Include

#include "NavigationSystem.h"

Source

/Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp

Syntax

void EndTimeSliceAndAdjustDuration()

Remarks

Useful when multiple sections of code need to be timesliced per frame using the same time slice duration that do not necessarily occur concurrently. This ends the time sliced code section and adjusts the RemainingDuration based on the time used between calls to StartTimeSlice and the last call to TestTimeSliceFinished.

the actual time slice is not tested in this function. Thats done in TestTimeSliceFinished! This can be called multiple times as long as StartTimeSlice() is called before EndTimeSliceAndAdjustDuration(). EndTimeSliceAndAdjustDuration can be called after TestTimeSliceFinished() has returned true in this case the RemainingDuration will just be zero

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss