summaryrefslogtreecommitdiffstats
path: root/src/game/client/main.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2026-01-05 02:20:01 +0500
committeruntodesu <kirill@untode.su>2026-01-05 02:20:01 +0500
commit915e52157208af9b41dd52892e7138c8c440e85b (patch)
tree718224dbf69a1fdf557131a648c34e60dbdca25d /src/game/client/main.cc
parenta1c83d56f41e6f2e0ad86dcd76d1446bfc60a37c (diff)
downloadvoxelius-915e52157208af9b41dd52892e7138c8c440e85b.tar.bz2
voxelius-915e52157208af9b41dd52892e7138c8c440e85b.zip
Progress
Diffstat (limited to 'src/game/client/main.cc')
-rw-r--r--src/game/client/main.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/client/main.cc b/src/game/client/main.cc
index b58d840..dcc78b3 100644
--- a/src/game/client/main.cc
+++ b/src/game/client/main.cc
@@ -75,6 +75,8 @@ int main(int argc, char** argv)
spdlog::info("Voxelius Client {}", version::full);
+ splash::init_client();
+
video::init();
keyboard::init();
@@ -163,8 +165,6 @@ int main(int argc, char** argv)
}
}
- splash::init_client();
-
video::update_window_title();
ImGuiIO& io = ImGui::GetIO();
@@ -205,9 +205,11 @@ int main(int argc, char** argv)
client_game::init_late();
+ is_running = true;
+
auto last_curtime = globals::curtime;
- while(!glfwWindowShouldClose(globals::window)) {
+ while(is_running) {
globals::curtime = utils::unix_microseconds();
globals::window_frametime_us = globals::curtime - last_curtime;