Remove per-frame profiling instrumentation and periodic debug logging

Strip 26 chrono::now() timing calls per frame from renderer update loop,
periodic LOG_INFO/LOG_DEBUG from terrain/character/quest/heartbeat paths,
and dead m2ProfileCounter variable.
This commit is contained in:
Kelsi 2026-02-23 04:26:20 -08:00
parent e8c2344226
commit 820a36ac12
5 changed files with 4 additions and 100 deletions

View file

@ -729,15 +729,6 @@ void GameHandler::update(float deltaTime) {
? 0.25f
: (classicLikeCombatSync ? 0.05f : moveHeartbeatInterval_);
if (timeSinceLastMoveHeartbeat_ >= heartbeatInterval) {
// Debug: log heartbeat position periodically
static int hbCount = 0;
if (++hbCount <= 5 || hbCount % 60 == 0) {
glm::vec3 serverPos = core::coords::canonicalToServer(
glm::vec3(movementInfo.x, movementInfo.y, movementInfo.z));
LOG_INFO("Heartbeat #", hbCount, " canonical=(",
movementInfo.x, ",", movementInfo.y, ",", movementInfo.z,
") server=(", serverPos.x, ",", serverPos.y, ",", serverPos.z, ")");
}
sendMovement(Opcode::MSG_MOVE_HEARTBEAT);
timeSinceLastMoveHeartbeat_ = 0.0f;
}