Skip to content

Patch GameDatabase.ExistsModel similarly to other methods#353

Merged
Phantomical merged 1 commit intoKSPModdingLibs:devfrom
Phantomical:gdb-perf-exists-model
Apr 15, 2026
Merged

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

Conversation

@Phantomical
Copy link
Copy Markdown
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
@Phantomical Phantomical merged commit cefb5ae into KSPModdingLibs:dev Apr 15, 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