From c11c0174ece92b4502648ad33653975bfdfc39a0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 5 May 2008 17:45:30 +0000 Subject: lights with entity color, sunlight, network stats --- src/client/view.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client') diff --git a/src/client/view.cc b/src/client/view.cc index aaf8210..660930b 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -21,6 +21,7 @@ #include "render/render.h" #include "render/textures.h" #include "core/core.h" +#include "core/stats.h" #include "math/mathlib.h" #include "sys/sys.h" @@ -153,6 +154,8 @@ void draw_status() stats << "tris " << std::setw(5) << render::Stats::tris << "\n"; stats << "quads " << std::setw(5) << render::Stats::quads << "\n"; } + stats << "tx "<< std::setw(5) << (core::Stats::network_bytes_sent >> 10) << "\n"; + stats << "rx "<< std::setw(5) << (core::Stats::network_bytes_received >> 10) << "\n"; draw_text(video::width-CHARWIDTH*12, CHARHEIGHT*2, stats); } -- cgit v1.2.3