Basic benchmarking

This commit is contained in:
Simon Lübeß
2025-08-17 00:26:16 +02:00
parent fca126c960
commit 8f51d1c626
16 changed files with 665 additions and 26 deletions
+3 -3
View File
@@ -122,17 +122,17 @@ namespace GlitchyEngine.World
}
});
if (_font == null)
/*if (_font == null)
_font = new Font(@"C:\Windows\Fonts\arial.ttf", 24);
else
_font..AddRef();
_font..AddRef();*/
//_font = new Font(@"C:\Windows\Fonts\Cascadia Code.ttf", 24);
}
public ~this()
{
if (_font.ReleaseRefGetCount() == 0)
if (_font?.ReleaseRefGetCount() == 0)
{
_font = null;
}