From 9f682c6015bba10f918c289480d83a76f7470c3e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 13:55:07 +0200 Subject: [PATCH] Do not perform DPI setup when DPI might be not yet known. Reloading fonts is a fairly lenghty operation (~30-50 ms), so avoid doing it twice in a row. --- profiler/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index a9cab6cf..3d27185d 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -394,13 +394,12 @@ int main( int argc, char** argv ) { dpiScale = cnv; dpiScaleOverriddenFromEnv = true; + SetupDPIScale(); } } s_achievements->Achieve( "achievementsIntro" ); - SetupDPIScale(); - tracy::UpdateTextureRGBAMips( zigzagTex, (void**)zigzagPx, zigzagX, zigzagY, 6 ); for( auto& v : zigzagPx ) free( v );