branchrust_reboot/main/fix_texture_streaming_2cancel
11 Commits over 28 Days - 0.02cph!
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
Disable mip map streaming early to prevent Unity from loading textures at a lower resolution