From 6ce2664d578587448d2adedd0a1f37fb5815d935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 12 Sep 2022 07:00:47 +0000 Subject: [PATCH] web tweaks --- code/game/src/debug_ui.c | 2 ++ code/game/src/network.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/game/src/debug_ui.c b/code/game/src/debug_ui.c index 4404c37..a7ec9da 100644 --- a/code/game/src/debug_ui.c +++ b/code/game/src/debug_ui.c @@ -172,6 +172,7 @@ static debug_item items[] = { }, .limit_to = L_MP, }, +#if !defined(PLATFORM_WEB) { .kind = DITEM_LIST, .name = "replay system", @@ -209,6 +210,7 @@ static debug_item items[] = { }, .limit_to = L_SP, }, +#endif { .kind = DITEM_LIST, .name = "profilers", diff --git a/code/game/src/network.h b/code/game/src/network.h index e02bac5..fc5bfe7 100644 --- a/code/game/src/network.h +++ b/code/game/src/network.h @@ -17,16 +17,16 @@ typedef struct { uint64_t total_received; uint32_t outgoing_total; uint64_t total_sent; - + // NOTE(zaklaus): bandwidth (bytes/sec) float incoming_bandwidth; float outgoing_bandwidth; - + // NOTE(zaklaus): packet integrity uint64_t packets_sent; uint32_t packets_lost; float packet_loss; - + // NOTE(zaklaus): ping uint32_t ping; uint32_t low_ping;