drewcassidy / KSP-Conformal-Decals

Conformal Decals for KSP

Home Page:https://forum.kerbalspaceprogram.com/index.php?/topic/194802-*

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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