Helion icon indicating copy to clipboard operation
Helion copied to clipboard

Assets.pk3 and its contents get parsed twice

Open lemming104 opened this issue 1 year ago • 0 comments

I noticed this while messing with font loading. It looks like Assets.pk3 gets loaded and parsed during client init: https://github.com/Helion-Engine/Helion/blob/b4101663e062b21b0afc0c066fa42534d44e0917/Client/Client.Initialize.cs#L24

And then it gets loaded again as a consequence of this call, after the IWAD is selected. https://github.com/Helion-Engine/Helion/blob/b4101663e062b21b0afc0c066fa42534d44e0917/Client/Client.Initialize.cs#L41

This means that the font-to-bitmap generation stuff gets run twice, which is actually how I noticed it.

lemming104 avatar Aug 29 '24 01:08 lemming104