Skip to content

Patch GameDatabase.ExistsModel similarly to other methods#353

Open
Phantomical wants to merge 1 commit intoKSPModdingLibs:devfrom
Phantomical:gdb-perf-exists-model
Open

Patch GameDatabase.ExistsModel similarly to other methods#353
Phantomical wants to merge 1 commit intoKSPModdingLibs:devfrom
Phantomical:gdb-perf-exists-model

Conversation

@Phantomical
Copy link
Collaborator

This one method call takes up ~80% of ModuleWaterfallFX.Start, which can account for a pretty significant amount of time during scene switches. This is especially true on more heavily modded games where the list of models can be much larger. The added patch is basically trivial since all the hard parts have been implemented already.

For some numbers, here's a break down of how long it takes for ModuleWaterfallFX on one of my test saves
image

This one method call takes up ~80% of ModuleWaterfallFX.Start, which can
account for a pretty significant amount of time during scene switches.
This is especially true on more heavily modded games where the list of
models can be much larger.
@Phantomical Phantomical changed the base branch from master to dev February 22, 2026 21:46
@Phantomical Phantomical added the kspPerformance Possible performance improvement in KSP label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kspPerformance Possible performance improvement in KSP

Development

Successfully merging this pull request may close these issues.

1 participant