549 Commits over 396 Days - 0.06cph!
Fix compilation due to renaming of FastDebugDraw to InstancedDebugDraw
Merge from vram_budget: Revamp texture streaming system
Disable texture streaming for ground_plants
Finalised texture streaming changes, removed complicated switching logic, added ground_plants atlas to exclude list
Merge from fast_debug_draw: More fixes
Various fixes and assertions to prevent further issues. I think we're good now. (Famous last words)
Merge from fast_debug_draw: Fix memory leak in DamageTracker
Fixed memory leak in DamageTracker
Merge from fast_debug_draw: Fix shaders on Mac/Metal
Move #pragma instructions from .cginc back to shader file to avoid confusing Unity.
Hopefully fix shader compilation on Metal due to missing support for geometry shaders. I can't test it, because literally every other platform supports geometry shaders.
Started work on graphical texture optimisation tools (very much WIP). This will come in handy for future tuning of the texture streaming system. Especially once we get back to instancing. Hoo boy.
Enable building atlasses for mip level streaming. This might be a pandora's box, but it brings non-streaming texture memory to less than 1 GB, leaving plenty of room for streaming textures.
Change 4883 texture metadata for streaming
TextureOptimizationTools: Add function that changes only textures that should be streamable but aren't
Various fixes to the texture optimisation tools
Apply "Make All Streamable" to 8294 textures
Add option "Make All Streamable" to texture optimisation tools based on Diogo's filter functions
Force texture mipmap streaming to be always on (experiment) and set the memory budget equal to available graphics memory.
Be very cautious about enabling texture streaming. Only enable it if Texture.streamingTextureLoadingCount = 0 and Texture.allowThreadedTextureCreation = false. If not, set Texture.allowThreadedTextureCreation = false and try again in 1 second. One second is enough to upload a few textures, right?
Remove checking of Texture.streamingTextureLoadingCount during TextureStreaming.Update()
Disallow threaded texture creation whenever a loading screen is displayed. This should slightly improve loading times and further mitigate texture streaming race conditions.
Replace assertion with just a warning
Cleanup access to texture streaming related variables to prevent accidentally waking up the streaming system when we don't want to. Also added some experimental assertions to make sure no textures are currently loading when texture streaming is enabled.
Make texture streaming tunables accessible via ConVars and improve output of texture.stats
Merge from fast_debug_draw: Disable instancing for text by default, due to missing support for rich text formatting tags
Regenerate console commands
Disable ddraw instancing system for text by default because the new system doesn't support rich text formatting tags just yet
Disable mip map streaming early to prevent Unity from loading textures at a lower resolution
Merge from fast_debug_draw (remove permanently displayed debug sphere, whoops!)
Merge from /main/fast_debug_draw
Change distance fade to fade to black instead of transparent, which was the original DDraw behavior.
Added missing changes to material variant that Unity didn't save for some damned reason.