The meter that times the parts of each frame on three bars at the right of the screen.
More...
Go to the source code of this file.
|
| void | AddTimingMarker (s32 bar, s32 red, s32 green, s32 blue, s32 alpha) |
| | Mark the time since the start of the frame on a bar, and colour the part that follows with 8-bit components.
|
| void | BeginTimingFrame (void) |
| | End the frame of the meter with a magenta part on each bar, and start the next.
|
| void | DrawTimingBars (void) |
| | Draw the bars of the last frame, with a tick for each sixtieth of a second.
|
| void | SaveClockForPause (void) |
| | Keep the random seed and the clock of the frames while the race is paused.
|
| void | RestoreClockAfterPause (void) |
| | Give the random seed and the clock of the frames back once the pause ends.
|
The meter that times the parts of each frame on three bars at the right of the screen.
◆ TIMING_BARS
◆ TIMING_MARKERS
| #define TIMING_MARKERS 256 |
The markers a bar holds in a frame.
◆ AddTimingMarker()
Mark the time since the start of the frame on a bar, and colour the part that follows with 8-bit components.
- Parameters
-
| bar | The index of the bar. |
| red | The red component. |
| green | The green component. |
| blue | The blue component. |
| alpha | The alpha component. Only its top bit is used. |
- Ghidra address:
- USA: 0x8022d7e0
- Ghidra address:
- Asia: 0x8022D330
- Ghidra address:
- EUR: 0x8022ecf0
- Ghidra address:
- JPN: 0x8022e4a0
- Ghidra address:
- BRD3D: 0x10008b80
- Ghidra address:
- BRGlide: 0x10008d60
◆ BeginTimingFrame()
| void BeginTimingFrame |
( |
void | | ) |
|
End the frame of the meter with a magenta part on each bar, and start the next.
- Ghidra address:
- USA: 0x8022d8ac
- Ghidra address:
- Asia: 0x8022D3FC
- Ghidra address:
- EUR: 0x8022edbc
- Ghidra address:
- JPN: 0x8022e56c
- Ghidra address:
- BRD3D: 0x1002c210
- Ghidra address:
- BRGlide: 0x100192d0
◆ DrawTimingBars()
| void DrawTimingBars |
( |
void | | ) |
|
Draw the bars of the last frame, with a tick for each sixtieth of a second.
- Ghidra address:
- USA: 0x8022d97c
- Ghidra address:
- Asia: 0x8022D4CC
- Ghidra address:
- EUR: 0x8022ee8c
- Ghidra address:
- JPN: 0x8022e63c
◆ SaveClockForPause()
| void SaveClockForPause |
( |
void | | ) |
|
Keep the random seed and the clock of the frames while the race is paused.
- Ghidra address:
- USA: 0x8022af34
- Ghidra address:
- Asia: 0x8022AA84
- Ghidra address:
- EUR: 0x8022c2dc
- Ghidra address:
- JPN: 0x8022ba94
- Ghidra address:
- BRD3D: 0x10067980
- Ghidra address:
- BRGlide: 0x100609f0
◆ RestoreClockAfterPause()
| void RestoreClockAfterPause |
( |
void | | ) |
|
Give the random seed and the clock of the frames back once the pause ends.
- Ghidra address:
- USA: 0x8022af64
- Ghidra address:
- Asia: 0x8022AAB4
- Ghidra address:
- EUR: 0x8022c310
- Ghidra address:
- JPN: 0x8022bac8
- Ghidra address:
- BRD3D: 0x100679a0
- Ghidra address:
- BRGlide: 0x10060a10
◆ g_aTimingMarkers
The markers of the two frames.
- Ghidra address:
- USA: 0x8034e9b0
- Ghidra address:
- Asia: 0x8034E460
- Ghidra address:
- EUR: 0x80350eb0
- Ghidra address:
- JPN: 0x8034ef30
- Ghidra address:
- BRD3D: 0x1067d580
- Ghidra address:
- BRGlide: 0x105b9728
◆ g_aTimingMarkerCounts
The number of timing markers on each bar of each frame.
- Ghidra address:
- USA: 0x803519b0
- Ghidra address:
- Asia: 0x80351460
- Ghidra address:
- EUR: 0x80353eb0
- Ghidra address:
- JPN: 0x80351f30
- Ghidra address:
- BRD3D: 0x1067d558
- Ghidra address:
- BRGlide: 0x105b9700
◆ g_dwTimingFrame
The frame the markers go to.
The meter shows the other one.
- Ghidra address:
- USA: 0x8028bda0
- Ghidra address:
- Asia: 0x8028B8F0
- Ghidra address:
- EUR: 0x8028e500
- Ghidra address:
- JPN: 0x8028df30
- Ghidra address:
- BRD3D: 0x1067d570
- Ghidra address:
- BRGlide: 0x105b9718
◆ g_dwTimingFrameStart
The low word of the timer count at the start of the frame.
- Ghidra address:
- USA: 0x8028bdac
- Ghidra address:
- Asia: 0x8028B8FC
- Ghidra address:
- EUR: 0x8028e50c
- Ghidra address:
- JPN: 0x8028df3c
- Ghidra address:
- BRD3D: 0x1067d578
- Ghidra address:
- BRGlide: 0x105b9720
◆ g_dwTimingFrameElapsed
| u64 g_dwTimingFrameElapsed |
|
extern |
The full timer count at the start of the frame.
- Ghidra address:
- USA: 0x8028bda8
- Ghidra address:
- Asia: 0x8028B8F8
- Ghidra address:
- EUR: 0x8028e508
- Ghidra address:
- JPN: 0x8028df38
- Ghidra address:
- BRD3D: 0x1067d57c
- Ghidra address:
- BRGlide: 0x105b9724
◆ g_dwTimingBarScale
The timer count the full length of the bars stands for.
- Ghidra address:
- USA: 0x803519c8
- Ghidra address:
- Asia: 0x80351478
- Ghidra address:
- EUR: 0x80353ec8
- Ghidra address:
- JPN: 0x80351f48
◆ g_dwTimingBarScaleHold
| s32 g_dwTimingBarScaleHold |
|
extern |
The frames the scale keeps before it may shrink.
- Ghidra address:
- USA: 0x8028bdb0
- Ghidra address:
- Asia: 0x8028B900
- Ghidra address:
- EUR: 0x8028e510
- Ghidra address:
- JPN: 0x8028df40
◆ g_dwTimingBarsRenderMode0
| u32 g_dwTimingBarsRenderMode0 |
|
extern |
The render mode the meter leaves set, in two halves.
- Ghidra address:
- USA: 0x8028a890
- Ghidra address:
- Asia: 0x8028A3E0
- Ghidra address:
- EUR: 0x8028ca94
- Ghidra address:
- JPN: 0x8028c564
◆ g_dwTimingBarsRenderMode1
| u32 g_dwTimingBarsRenderMode1 |
|
extern |
The second half of the render mode the timing meter leaves set.
- Ghidra address:
- USA: 0x8028a894
- Ghidra address:
- Asia: 0x8028A3E4
- Ghidra address:
- EUR: 0x8028ca98
- Ghidra address:
- JPN: 0x8028c568
◆ g_dwHudDebugLevel
How much the debugging displays show.
The screens draw the timing bars from 2.
- Ghidra address:
- USA: 0x8028aa98
- Ghidra address:
- Asia: 0x8028A5E8
- Ghidra address:
- EUR: 0x8028cca0
- Ghidra address:
- JPN: 0x8028c770