Show / Hide Table of Contents

Enum UpdatePeriod

Framework Update Loop time period type A fixed timestep, as small as possible, is generally advised to give more stable simulations Please note, that if the user has requested the framework processes fractional catch up update iterations before drawing, not all update timesteps will be of an equal length. It maybe preferrable to avoid fractional pre-draw updates and implement some draw update motion interpolation to achieve additional smoothness at the risk of error correction / deviation from the next update simulation step

Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public enum UpdatePeriod : int

Fields

Name Description
Fixed

Each update is a fixed timespan as requested by the user in the start up configuration If the update (+ other framework processing) takes longer to process than the timespan itself the simulation will slow down and fall behind the clock

Fixed_Adaptive
Variable

The framework uses a variable update period equal to the time since the last update A lower bound is provided by the user in the start update config for the smallest possible timestep that should be processed. Below this time period, the framework waits

In This Article
Back to top yak2D - Alex Paterson