Pavel Djundik
Pavel Djundik
 When double clicking a file, it switches tab, but the tooltip remains.
When a big map loads, it keeps a lot of cached resources around, which consumes entirely too much memory in HL:A maps.
Right now it shows the loading bar while the first file is loaded, but when it starts processing opengl and loading all the dependencies, it just stays on a black...
https://github.com/SteamDatabase/ValveResourceFormat/blob/8da2ad010ebc3dc23d6e65d78bd06b585548cfaa/ValveResourceFormat/Resource/ResourceTypes/NTRO.cs#L191-L194
There's some work done here https://github.com/SteamDatabase/ValveResourceFormat/blob/master/ValveResourceFormat/CompiledShader/CompiledShader.cs But so far that has not yielded any useful information.
We use Span/BinaryReader in different places, and sometimes there's even duplicate arrays. Ideally it would operate on a Span for all converters. File: https://github.com/SteamDatabase/ValveResourceFormat/blob/master/ValveResourceFormat/Resource/ResourceTypes/Texture.cs see `GenerateBitmap`
Right now if you try opening a model, or any other file that we have special handling for besides the initial `Resource` reading, if it throws an exception the file...