Skip to content

Commit

Permalink
F5 debug info: Add colons, use lowercase except for FPS and RTT
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMonroe314 authored and paramat committed Dec 10, 2017
1 parent 03caa1e commit 419799b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/game.cpp
Expand Up @@ -4421,17 +4421,17 @@ void Game::updateGui(const RunStats &stats, f32 dtime, const CameraOrientation &
std::ostringstream os(std::ios_base::binary);
os << std::fixed
<< PROJECT_NAME_C " " << g_version_hash
<< ", FPS " << fps
<< ", FPS: " << fps
<< std::setprecision(0)
<< ", Drawtime " << drawtime_avg << "ms"
<< ", drawtime: " << drawtime_avg << "ms"
<< std::setprecision(1)
<< ", Dtime jitter "
<< ", dtime jitter: "
<< (stats.dtime_jitter.max_fraction * 100.0) << "%"
<< std::setprecision(1)
<< ", View range "
<< ", view range: "
<< (draw_control->range_all ? "All" : itos(draw_control->wanted_range))
<< std::setprecision(3)
<< ", RTT " << client->getRTT() << "s";
<< ", RTT: " << client->getRTT() << "s";
setStaticText(guitext, utf8_to_wide(os.str()).c_str());
guitext->setVisible(true);
} else {
Expand All @@ -4449,21 +4449,21 @@ void Game::updateGui(const RunStats &stats, f32 dtime, const CameraOrientation &
if (flags.show_debug) {
std::ostringstream os(std::ios_base::binary);
os << std::setprecision(1) << std::fixed
<< "Pos (" << (player_position.X / BS)
<< "pos: (" << (player_position.X / BS)
<< ", " << (player_position.Y / BS)
<< ", " << (player_position.Z / BS)
<< "), Yaw " << (wrapDegrees_0_360(cam.camera_yaw)) << "° "
<< "), yaw: " << (wrapDegrees_0_360(cam.camera_yaw)) << "° "
<< yawToDirectionString(cam.camera_yaw)
<< ", Seed " << ((u64)client->getMapSeed());
<< ", seed: " << ((u64)client->getMapSeed());

if (runData.pointed_old.type == POINTEDTHING_NODE) {
ClientMap &map = client->getEnv().getClientMap();
const INodeDefManager *nodedef = client->getNodeDefManager();
MapNode n = map.getNodeNoEx(runData.pointed_old.node_undersurface);

if (n.getContent() != CONTENT_IGNORE && nodedef->get(n).name != "unknown") {
os << ", Pointed " << nodedef->get(n).name
<< ", Param2 " << (u64) n.getParam2();
os << ", pointed: " << nodedef->get(n).name
<< ", param2: " << (u64) n.getParam2();
}
}

Expand Down

0 comments on commit 419799b

Please sign in to comment.