coastline 0.0.4
Loading...
Searching...
No Matches
frameclock.h
Go to the documentation of this file.
1#pragma once
2
7
8#include "common/types.h"
9
11#define TICK_PERIOD_MS 100
13#define TICKS_PER_PERIOD 3
15#define TICK_INTERVAL_MS 33
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
31
38
45
53
60void ResetFrameTimer(void);
61
69
77
78#if TGR_PLATFORM == TGR_PLATFORM_WIN
81#endif
82
83#ifdef __cplusplus
84}
85#endif
int g_dwGameFpsFrameCountdown
The game-loop sample written last, negative before the first loop.
void ResetFrameTimer(void)
Start the ticks of the frames from the current time, at three for each tenth of a second.
void SnapshotPlatformFrameTimerState(void)
Read the Windows frame clock before resetting the shared frame counters.
u32 GetFrameTickCounter(void)
Get the time of the current frame tick.
void AdvanceFrameTickCounter(void)
Advance the ticks by one, the time of the current tick by the milliseconds of its phase.
void ResetFrameTimerState(void)
Start the timing of the frames of a race again.
int g_dwGameFpsSampleFrames
The number of game-loop durations averaged for the game frame rate.
u32 GetHighResolutionTime(void)
The time since the first call, from the performance counter in milliseconds rounded to the nearest,...
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20