MiniQuake

src/miniquake/host_timing.ml

Package
miniquake.host_timing
Reachable
Yes

Imports

Declarations

binary32

function binary32(value)

Implements the `binary32` operation for `miniquake.host_timing` (binary32).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `binary32`.

View source

create

function create()

Implements the `create` operation for `miniquake.host_timing` (create).

View source

filter

function filter(timing, elapsed, timedemo, forcedFrameRate, timeScale, maxFps)

Implements the `filter` operation for `miniquake.host_timing` (filter).

ParameterTypeDefaultDescription
timingdynamic—The timing input consumed by `filter`.
elapseddynamic—The elapsed input consumed by `filter`.
timedemodynamic—The timedemo input consumed by `filter`.
forcedFrameRatedynamic—The forced frame rate input consumed by `filter`.
timeScaledynamic—The time scale input consumed by `filter`.
maxFpsdynamic—The max fps input consumed by `filter`.

View source

filterAbsolute

function filterAbsolute(timing, newRealtime, maxFps, forcedFrameRate, timedemo, timeScale)

Exact Host_FilterTime core. WinQuake receives a float delta from the platform entry point, accumulates it in the double-precision realtime clock, filters against the unmodified oldRealtime value and only then updates the accepted frame time.

ParameterTypeDefaultDescription
timingdynamic—The timing input consumed by `filterAbsolute`.
newRealtimedynamic—Time value used by the operation.
maxFpsdynamic—The max fps input consumed by `filterAbsolute`.
forcedFrameRatedynamic—The forced frame rate input consumed by `filterAbsolute`.
timedemodynamic—The timedemo input consumed by `filterAbsolute`.
timeScaledynamic—The time scale input consumed by `filterAbsolute`.

View source

milliseconds

function milliseconds(timing)

Implements the `milliseconds` operation for `miniquake.host_timing` (milliseconds).

ParameterTypeDefaultDescription
timingdynamic—The timing input consumed by `milliseconds`.

View source