Table of Contents

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

player b3RecPlayer*

the recording player

budgetBytes nuint

memory cap for the kept snapshots; the spacing widens to stay under it

minIntervalFrames int

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.