-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom LRTR tech tree icons not showing #224
Comments
Okay, managed to reproduce this by running a minimal repro install from the steam directory, ie :
I've not managed to reproduce this by putting the game in various other paths, for example one with a I actually noticed such errors popping occasionally in the past, but always failed to identify and reproduce them consistently (the fact that there is no way to find back which texture this is about from the error message doesn't help...) I was suspecting some screwup in the threaded file load or in how the buffers are read, but checking the buffer against a manually reloaded file with |
Okay, scrap all that, the issue is caused by having a lower than max global mipmap bias during loading. On a side note, this already was somewhat of an issue, as if the user has lower than max mipmap level during loading, the DXT5 texture cache is created with that lower level and textures will consequently always be lower res if the user latter increase decrease the mipmap level (ie, increase texture quality in the settings). But the current issue seems to be that Unity doesn't like calling Stock load such textures through Anyway, the workaround is likely, when |
So this has turned into quite the rabbit hole... After loosing many hours trying a bunch of stuff with what unity provides, implementing a custom PNG loader, messing around with pointers and blockcopy, I realized the issue : Unity simply doesn't support converting a NPOT image to DXT5 + mipmaps. Then I asked myself, but how in hell does stock do ? |
…s in stock. It was wrongly generating mipmaps, notably resulting in NPOT textures not showing when texture quality wasn't set to full resolution ([see issue #224](#224)). - **FastLoader** : fixed cached PNG textures loading not using the data loaded by the threaded reader, but instead reading the file again synchronously (!). Unsurprisingly, fixing that is massively improving texture loading time.
Should be fixed in 1.35.1 |
Using the LRTR mod, forum user @Scottmm78 is reporting some icons of the custom tech tree not showing when KSPCF is installed.
User logs : LRTR_KSP.zip
This seems to happen only with multiple-of-4-width/height icons, meaning those converted to DXT5.
The user is reporting the issue happening with both the texture cache enabled and disabled
I can't reproduce this locally, neither in isolation nor with the same mod set as him.
I've asked him to try a stripped down version of the mod in a minimum install :
LRTR_KSPCF_Test.zip
Waiting for some feedback on this.
The text was updated successfully, but these errors were encountered: