mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Basic benchmarking
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user