Skip to content

Commit

Permalink
Do not perform DPI setup when DPI might be not yet known.
Browse files Browse the repository at this point in the history
Reloading fonts is a fairly lenghty operation (~30-50 ms), so avoid doing
it twice in a row.
  • Loading branch information
wolfpld committed Sep 28, 2024
1 parent 44ae59f commit 9f682c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions profiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 9f682c6

Please sign in to comment.