Method b3RecPlayer_SetKeyframePolicy
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3RecPlayer_SetKeyframePolicy(b3RecPlayer*, nuint, int)
Tune the keyframe ring used to speed up backward seeking. A keyframe is a periodic snapshot the player restores from instead of replaying from the start, trading memory for seek speed.
public static extern void b3RecPlayer_SetKeyframePolicy(b3RecPlayer* player, nuint budgetBytes, int minIntervalFrames)Parameters
playerb3RecPlayer*-
the recording player
budgetBytesnuint-
memory cap for the kept snapshots; the spacing widens to stay under it
minIntervalFramesint-
finest spacing between keyframes, in frames A zero budget or a non-positive interval keeps that value. Clears the existing ring, so call b3RecPlayer_Restart afterward to repopulate it under the new policy.