Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-05 17:45:30 +0000
committerStijn Buys <ingar@osirion.org>2008-05-05 17:45:30 +0000
commitc11c0174ece92b4502648ad33653975bfdfc39a0 (patch)
tree88860bfcbb7206834e61533af79f7631b5638cb2 /src/client
parent7218e3bd4616d4706090ec47d72845a2bb89c6a3 (diff)
lights with entity color, sunlight, network stats
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view.cc3
1 files changed, 3 insertions, 0 deletions
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);
}