Use more portable encoding for Unicode character in debug strfs
This commit is contained in:
parent
11e00a8ded
commit
7f65913762
@ -389,23 +389,23 @@ void ClientApplication::render() {
|
||||
auto start = Time::monotonicMicroseconds();
|
||||
renderer->switchEffectConfig("world");
|
||||
worldClient->render(m_renderData, TilePainter::BorderTileSize);
|
||||
LogMap::set("render_world_client", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_world_client", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
|
||||
start = Time::monotonicMicroseconds();
|
||||
m_worldPainter->render(m_renderData, [&]() { worldClient->waitForLighting(); });
|
||||
LogMap::set("render_world_painter", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_world_painter", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
|
||||
start = Time::monotonicMicroseconds();
|
||||
m_mainInterface->renderInWorldElements();
|
||||
LogMap::set("render_world_elements", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_world_elements", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
renderer->switchEffectConfig("default");
|
||||
|
||||
LogMap::set("render_world_total", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_world_total", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
}
|
||||
auto start = Time::monotonicMicroseconds();
|
||||
m_mainInterface->render();
|
||||
m_cinematicOverlay->render();
|
||||
LogMap::set("render_interface", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_interface", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
}
|
||||
|
||||
if (!m_errorScreen->accepted())
|
||||
|
@ -1458,7 +1458,7 @@ void WorldClient::lightingMain() {
|
||||
|
||||
m_lightingCalculator.calculate(m_renderData->lightMap);
|
||||
m_renderData = nullptr;
|
||||
LogMap::set("render_world_async_lighting_calc_time", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_world_async_lighting_calc_time", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
}
|
||||
|
||||
m_lightingCond.wait(m_lightingMutex);
|
||||
|
@ -72,7 +72,7 @@ void WorldPainter::render(WorldRenderData& renderData, function<void()> lightWai
|
||||
if (lightWaiter) {
|
||||
auto start = Time::monotonicMicroseconds();
|
||||
lightWaiter();
|
||||
LogMap::set("render_world_async_lighting_wait_time", strf(u8"{:05d}µs", Time::monotonicMicroseconds() - start));
|
||||
LogMap::set("render_world_async_lighting_wait_time", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start));
|
||||
}
|
||||
|
||||
if (renderData.isFullbright) {
|
||||
|
Loading…
Reference in New Issue
Block a user