mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Add mailbox system and fix logging performance stutter
Implement full mail send/receive: SMSG_SHOW_MAILBOX, CMSG_GET_MAIL_LIST, SMSG_MAIL_LIST_RESULT, CMSG_SEND_MAIL, SMSG_SEND_MAIL_RESULT, mail take money/item/delete/mark-as-read, and inbox/compose UI windows. Fix periodic stuttering in Stormwind caused by synchronous per-line disk flushes in the logger — remove fileStream.flush() and std::endl, downgrade high-volume per-packet/per-model/per-texture LOG_INFO to LOG_DEBUG.
This commit is contained in:
parent
9bc8c5c85a
commit
8a468e9533
14 changed files with 782 additions and 22 deletions
|
|
@ -657,7 +657,7 @@ GLuint CharacterRenderer::compositeWithRegions(const std::string& basePath,
|
|||
composite[dstIdx + 3] = base.data[srcIdx + 3];
|
||||
}
|
||||
}
|
||||
core::Logger::getInstance().info("compositeWithRegions: upscaled 256x256 to 512x512");
|
||||
core::Logger::getInstance().debug("compositeWithRegions: upscaled 256x256 to 512x512");
|
||||
} else {
|
||||
composite = base.data;
|
||||
}
|
||||
|
|
@ -748,7 +748,7 @@ GLuint CharacterRenderer::compositeWithRegions(const std::string& basePath,
|
|||
blitOverlay(composite, width, height, overlay, dstX, dstY);
|
||||
}
|
||||
|
||||
core::Logger::getInstance().info("compositeWithRegions: region ", regionIdx,
|
||||
core::Logger::getInstance().debug("compositeWithRegions: region ", regionIdx,
|
||||
" at (", dstX, ",", dstY, ") ", overlay.width, "x", overlay.height, " from ", rl.second);
|
||||
}
|
||||
|
||||
|
|
@ -765,7 +765,7 @@ GLuint CharacterRenderer::compositeWithRegions(const std::string& basePath,
|
|||
applyAnisotropicFiltering();
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
|
||||
core::Logger::getInstance().info("compositeWithRegions: created ", width, "x", height,
|
||||
core::Logger::getInstance().debug("compositeWithRegions: created ", width, "x", height,
|
||||
" texture with ", regionLayers.size(), " equipment regions");
|
||||
compositeCache_[cacheKey] = texId;
|
||||
return texId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue