 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
std::deque< int > tickrate_history
Definition: tick.cpp:32
#define BLAM
Definition: tick.h:7
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
float check_elapsed_time()
Definition: tick.cpp:100
ImVec2 MousePos
Definition: imgui.h:1409
BLAM void TickThread()
Function containing the tick loop.
Definition: tick.cpp:120
unsigned char uint8_t
Definition: stdint.h:15
volatile bool run_tick_loop
Whether or not to continue running the game tick loop.
Definition: tick.cpp:28
BLAM void ResumeTickLoop()
Resumes the tick loop if it has been paused.
Definition: tick.cpp:183
BLAM int MaxTicksPerSecond()
Retrieves the maximum number of ticks per second.
Definition: tick.cpp:208
float x
Definition: imgui.h:181
BLAM void SetCurrentTickRate(int tickrate)
Stops the game tick, updates the tick rate, and re-starts the game tick.
Definition: tick.cpp:213
BLAM int GetCurrentTickRate1M()
Retrieves the average tick rate over the last minute.
Definition: tick.cpp:52
unsigned long long uint64_t
Definition: stdint.h:18
BLAM void PrepareTick()
Prepares required data for the tick loop.
Definition: tick.cpp:34
volatile bool has_tick_stopped
Whether or not the game tick loop has terminated.
Definition: tick.cpp:30
BLAM int GetCurrentTickRate10S()
Retrieves the average tick rate over the last 10 seconds.
Definition: tick.cpp:84
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:233
LARGE_INTEGER clock_frequency
The frequency of the CPU clock. Used in calculations for tick rate.
Definition: tick.cpp:24
font DisplayOffset y
Definition: README.txt:68
uint64_t total_runtime_ticks
Number of game ticks that have been run during entire program execution.
Definition: tick.cpp:21
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
Namespace containing components relating to the game tick.
Definition: tick.h:13
void do_tick()
Fires a #Blam::Events::TickEvent event to inform all listeners to update based on the game tick.
Definition: tick.cpp:112
float seconds_per_tick
The number of seconds within a single tick. Usually much less than 1 second.
Definition: tick.cpp:25
BLAM bool IsTickLoopRunning()
Determines whether or not the tick loop is currently running - NOT whether it is paused.
Definition: tick.cpp:203
BLAM int GetRenderHeight()
Retrieves the current height of the OGRE viewport.
Definition: ogre.cpp:532
BLAM void EndTickLoop()
Terminates the tick loop.
Definition: tick.cpp:193
volatile bool pause_tick
Whether or not to temporarily pause the game tick.
Definition: tick.cpp:29
BLAM bool HasTickStopped()
Determines whether or not the tick loop has finished terminating.
Definition: tick.cpp:198
int max_tickrate
Maximum number of times doTick() should be run per second.
Definition: tick.cpp:19
float y
Definition: imgui.h:181
float total_elapsed_time
The total amount of time elapsed this second. Used to determine how many ticks have run this second.
Definition: tick.cpp:26
BLAM int GetCurrentTickRate()
Retrieves the current tick rate.
Definition: tick.cpp:47
config GlyphExtraSpacing x
Definition: README.txt:30
BLAM int GetCurrentTickRate5M()
Retrieves the average tick rate over the last 5 minutes.
Definition: tick.cpp:68
bool lock_mouse_button_state
Definition: mouse.cpp:14
BLAM void PauseTickLoop()
Temporarily pauses the tick loop.
Definition: tick.cpp:188
int ticks_this_second
Number of game ticks that have been run this second.
Definition: tick.cpp:20
std::vector< uint8_t > active_mouse_buttons
Definition: mouse.cpp:13
LARGE_INTEGER last_second_time
Timestamp of previous second/tick counter reset.
Definition: tick.cpp:23
BLAM int GetRenderWidth()
Retrieves the current width of the OGRE viewport.
Definition: ogre.cpp:527