![]() |
Blamite Game Engine - Keystone
00402.09.29.23.0627.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/blam_api.h>
#include "components/editor_data/editor_data.h"
#include "components/editor_data/document/tag/tag.h"
#include "components/engine/engine.h"
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... | |
bool | editor_run_tick_loop = true |
Whether or not to continue running the game tick loop. More... | |
bool | editor_pause_tick = false |
Whether or not to temporarily pause the game tick. More... | |
bool | editor_has_tick_stopped = false |
Whether or not the game tick loop has terminated. More... | |
float checkElapsedTime | ( | ) |
void doTick | ( | ) |
Fires a #Blam::Events::TickEvent event to inform all listeners to update based on the game tick.
LARGE_INTEGER editor_clock_frequency |
The frequency of the CPU clock. Used in calculations for tick rate.
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.
bool editor_pause_tick = false |
Whether or not to temporarily pause the game tick.
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.