mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
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.
This commit is contained in:
parent
44ae59f363
commit
9f682c6015
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user