![]() |
Blamite Game Engine - Keystone
00421.06.29.24.2305.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
#include "tick.h"#include <iostream>#include <string>#include <Strings/components/logger/logger.h>#include <Strings/components/classes/events/events.h>#include <Strings/components/classes/events/editor_events/EditorTick/EditorTickEvent.h>#include <blam/api/api.h>#include "components/editor_data/editor_data.h"#include "components/editor_data/document/tag/tag.h"#include "components/engine/engine.h"
Include dependency graph for tick.cpp:Functions | |
| float | checkElapsedTime () |
| void | doTick () |
| Fires a #Blam::Events::TickEvent event to inform all listeners to update based on the game tick. More... | |
Variables | |
| int | editor_max_tickrate = 30 |
| Maximum number of times doTick() should be run per second. More... | |
| int | editor_ticks_this_second = 0 |
| Number of game ticks that have been run this second. More... | |
| uint64_t | editor_total_runtime_ticks = 0 |
| Number of game ticks that have been run during entire program execution. More... | |
| LARGE_INTEGER | editor_last_second_time |
| Timestamp of previous second/tick counter reset. More... | |
| LARGE_INTEGER | editor_clock_frequency |
| The frequency of the CPU clock. Used in calculations for tick rate. More... | |
| float | editor_seconds_per_tick = 1.0f / float(editor_max_tickrate) |
| The number of seconds within a single tick. Usually much less than 1 second. More... | |
| float | editor_total_elapsed_time = 0.0f |
| The total amount of time elapsed this second. Used to determine how many ticks have run this second. More... | |
| volatile bool | editor_run_tick_loop = true |
| Whether or not to continue running the game tick loop. More... | |
| volatile bool | editor_pause_tick = false |
| Whether or not to temporarily pause the game tick. More... | |
| volatile bool | editor_has_tick_stopped = false |
| Whether or not the game tick loop has terminated. More... | |
| float checkElapsedTime | ( | ) |
Here is the caller graph for this function:| void doTick | ( | ) |
Fires a #Blam::Events::TickEvent event to inform all listeners to update based on the game tick.
Here is the call graph for this function:
Here is the caller graph for this function:| LARGE_INTEGER editor_clock_frequency |
The frequency of the CPU clock. Used in calculations for tick rate.
| volatile bool editor_has_tick_stopped = false |
Whether or not the game tick loop has terminated.
| LARGE_INTEGER editor_last_second_time |
Timestamp of previous second/tick counter reset.
| int editor_max_tickrate = 30 |
Maximum number of times doTick() should be run per second.
| volatile bool editor_pause_tick = false |
Whether or not to temporarily pause the game tick.
| volatile bool editor_run_tick_loop = true |
Whether or not to continue running the game tick loop.
| float editor_seconds_per_tick = 1.0f / float(editor_max_tickrate) |
The number of seconds within a single tick. Usually much less than 1 second.
| int editor_ticks_this_second = 0 |
Number of game ticks that have been run this second.
| float editor_total_elapsed_time = 0.0f |
The total amount of time elapsed this second. Used to determine how many ticks have run this second.
| uint64_t editor_total_runtime_ticks = 0 |
Number of game ticks that have been run during entire program execution.