Skip to content
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

99540 nil color values in XML, possibly causing slow load times #11

Open
salmelo opened this issue Jan 3, 2022 · 2 comments
Open

99540 nil color values in XML, possibly causing slow load times #11

salmelo opened this issue Jan 3, 2022 · 2 comments

Comments

@salmelo
Copy link

salmelo commented Jan 3, 2022

I've noticed the mod takes a bit to get going even after all the assets are loaded in. Maybe an extra 10-20 seconds or so. When I loaded a save with logging turned on it took a very long time, multiple minutes, and then the chat said [XmlLayout] Warning: 'nil' is not a valid Color value. <99540>. I believe writing all ~10k errors to the log file is probably what slowed it down so much more. I don't know if they're related to the normal slow load, but I assume they aren't good.

@jordanmchavez
Copy link
Owner

Starting the mod with logging, especially XML logging, is going to be very slow. Sending a lot of simultaneous log statements in a single frame is very very slow in TTS, and the XML logging does all of that on the very first frame.

Starting without logging, the survivor board added last major update is causing the additional load time. It's because of the massive XML UI we're creating all at the beginning. Unfortunately there's not much we can do about this unless TTS decides to make their XML UI loading faster. The only way to make it faster would be to display fewer survivor slots, or reduce the amount of stuff we show on each slot, neither of which I'm willing to sacrifice.

@jordanmchavez
Copy link
Owner

On second thought, I'll leave this open and double check that there's not some misuse of the UI code during init that's causing the slowness.

@jordanmchavez jordanmchavez reopened this Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants