Red text appears on ScaledSpace bodies
drewcassidy opened this issue · comments
Red text appears on bodies in spacedspace after using text decals, suggesting the game is somehow reusing textures
What is known about this issue:
- It occurs on both windows and macOS (linux unknown but likely)
- Seems to occur when the user is starting to run low on memory, possibly a unity bug with texture usage
It could be either the render texture or the saved texture itself thats being shown, but resource maps do not use rendertextures at all so that is unlikely
This is almost certainly a Unity or KSP bug, but something ConformalDecals needs to work around regardless
If anyone runs into this issue, please use one of the scanner parts to do a resource scan of the planet and see if the overlay causes the text to go away
Looks like OverlayGenerator
makes a new texture without clearing the contents first, which Im guessing means Unity just hands it whatever it has available in the pool. easy solution is to change the texture format for rendered textures, but if that doesnt work I'll have to use Harmony
Fix may not actually work, will reopen if the bug resurfaces