Skip to content

updateGameData timer not linked to real time #2

@zeroDecoder

Description

@zeroDecoder
void GameData::updateGameData() {
    this->gameTime += 0.1;

This assumes the function is called every 100ms regardless of what is actually happening. You should instead log the start time and subtract it from the current time at the start of the function.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions