coastline 0.0.4
Loading...
Searching...
No Matches
racepacing.h File Reference
Include dependency graph for racepacing.h:

Go to the source code of this file.

Functions

static void UpdateRaceFrameStatistics (void)
 Record the duration of the preceding game loop.
static void PaceRaceFrames (void)
 Render interpolated snapshots until the next game frame is due.

Variables

int g_dwRaceFrameCounter
 The frame of the race, -1 before the first.
unsigned g_dwLastFrameTimestamp
 The time of the preceding game loop, in milliseconds.
volatile unsigned g_dwRaceAccumulatedTime
 The milliseconds the race has run since its first frame.
int g_nRacePacingInterval
 The entry of g_adwRaceFrameIntervals that paces the next frame.
unsigned g_dwNextRaceFrameTime
 The time the next game frame is due, in milliseconds.
int g_nRaceFramesWithoutRender
 The game frames run since a snapshot was last drawn.
unsigned g_dwLastRaceRenderTime
 The time a snapshot was last drawn, in milliseconds.
const unsigned g_adwRaceFrameIntervals [3]
 The milliseconds of three game frames in turn, a tenth of a second together.

Function Documentation

◆ UpdateRaceFrameStatistics()

void UpdateRaceFrameStatistics ( void )
inlinestatic

Record the duration of the preceding game loop.

◆ PaceRaceFrames()

void PaceRaceFrames ( void )
inlinestatic

Render interpolated snapshots until the next game frame is due.

Variable Documentation

◆ g_dwRaceFrameCounter

int g_dwRaceFrameCounter
extern

The frame of the race, -1 before the first.

Ghidra address:
BRD3D: 0x1068093c
Ghidra address:
BRGlide: 0x105bcae4

◆ g_dwLastFrameTimestamp

unsigned g_dwLastFrameTimestamp
extern

The time of the preceding game loop, in milliseconds.

Ghidra address:
BRD3D: 0x106909e8
Ghidra address:
BRGlide: 0x105ccb90

◆ g_dwRaceAccumulatedTime

volatile unsigned g_dwRaceAccumulatedTime
extern

The milliseconds the race has run since its first frame.

Ghidra address:
BRD3D: 0x106909d4
Ghidra address:
BRGlide: 0x105ccb7c

◆ g_nRacePacingInterval

int g_nRacePacingInterval
extern

The entry of g_adwRaceFrameIntervals that paces the next frame.

Ghidra address:
BRD3D: 0x106805c4
Ghidra address:
BRGlide: 0x105bc76c

◆ g_dwNextRaceFrameTime

unsigned g_dwNextRaceFrameTime
extern

The time the next game frame is due, in milliseconds.

Ghidra address:
BRD3D: 0x10680948
Ghidra address:
BRGlide: 0x105bcaf0

◆ g_nRaceFramesWithoutRender

int g_nRaceFramesWithoutRender
extern

The game frames run since a snapshot was last drawn.

Ghidra address:
BRD3D: 0x106909f8
Ghidra address:
BRGlide: 0x105ccba0

◆ g_dwLastRaceRenderTime

unsigned g_dwLastRaceRenderTime
extern

The time a snapshot was last drawn, in milliseconds.

Ghidra address:
BRD3D: 0x106909fc
Ghidra address:
BRGlide: 0x105ccba4

◆ g_adwRaceFrameIntervals

const unsigned g_adwRaceFrameIntervals[3]
extern

The milliseconds of three game frames in turn, a tenth of a second together.

Ghidra address:
BRD3D: 0x100aa268
Ghidra address:
BRGlide: 0x100a95b8