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

KSP loader performance optimization #109

Closed
wants to merge 34 commits into from
Closed

Commits on Aug 24, 2022

  1. Configuration menu
    Copy the full SHA
    72c2bc4 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2022

  1. Fix nested Persistent IConfigNode objects that each call LoadObjectFr…

    …omConfig or CreateConfigFromObject (#86)
    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    f5d86c7 View commit details
    Browse the repository at this point in the history
  2. Updated readme

    gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    0cd1cf3 View commit details
    Browse the repository at this point in the history
  3. Improve ConfigNode load/save perf (#88)

    * Rewrite PreFormatConfig to iterate through strings as little as possible.
    
    * Improve logging, add @siimav's parallel processing bit (seems to be strictly slower even for 1m+ rows, tho)
    
    * Patch writing, too, for a slight improvement in perf
    
    * Fix a lingering issue with trailing braces
    
    * Patch on startup, not after MM. Skipping keys will only happen after MM, but they're really just there for sfs loading, can't trust what's in gamedatabase enough to skip parsing there.
    
    * Update readme and Settings
    
    * Big improvements to save perf by not writing lines / flushing / using a puny buffer.
    
    * missed a newline
    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    ec4c0bd View commit details
    Browse the repository at this point in the history
  4. Bump version

    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    1596a17 View commit details
    Browse the repository at this point in the history
  5. Mod upgrade pipeline (#91)

    * Create ModUpgradePipeline modding patch. This patch will store and use mods' versions when running SaveUpgradePipeline scripts.
    
    * Go back to storing versions for all assemblies. Bump KSPCF version to minor, not revision.
    
    * Fix readme to link PR
    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    565302e View commit details
    Browse the repository at this point in the history
  6. More ConfigNode perf (#90)

    * Rewrite more of ConfigNode. Avoid all recursion when reading from disk. Add further optimization around specific use cases (craft, sfs, cache loading). Add blacklist support (assumes all values are sane unless otherwise informed).
    
    * Try with MemoryMappedFile
    
    * Read to a char array, more inlining and optimizing
    
    This is better than it was, but in some cases the old version outperforms it.
    
    Fix some further parser issues, switch to new method of reading files
    
    Remove unused code from parser
    
    * Remove confignodeperf settings blocks, upodate readme
    
    * ConfigNodePerf: Patch copy, tostring, and parse as well. Refactor parse method so it can be used for either file or string case.
    
    * Allow not writing indents when saving nodes.
    
    * Found another copypasta issue with Santiize...
    
    * Rewrite ReadObject/WriteObject and associated code. Works fine in test but crashes my live game...
    
    * Add KSPAssembly attribute
    
    * Fixed exception when single field is specified more than once due to cfg error
    
    * Fix not saving nodes for objects/components when writing, cache fieldless objects to prevent recreating them when Persistent is applied wrongly
    
    * Fix fallback decoding for ReadFile
    
    * Don't double translate on load fail. Use a static stringbuilder, and reflect to clear previous chunks.
    
    * Further expand on notes in readme, clean up last bits prior to merge. Force sanitize off in the UpgradePipeline patch.
    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    bf772ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a9c84be View commit details
    Browse the repository at this point in the history
  8. Fix missing attribute for MultipleModulePartAPI, refactor WriteValue …

    …for better support for other mods, update release script to behave correctly with new versioning bump version (only fileversion and KSPAssembly).
    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    f695087 View commit details
    Browse the repository at this point in the history
  9. Fix stock SaveUpgradePipeline bug where it blows up if a script doesn…

    …'t support both sfs and craft contexts. Bump version.
    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    ac8dbda View commit details
    Browse the repository at this point in the history
  10. Add RestoreMaxPhysicsDT (#95)

    When using physics warp, Unity will set the max physics dt to be at least as high as the scaled physics dt.  But KSP will never restore it back to the normal value from the settings.  This can degrade performance as it allows more FixedUpdates to run per frame.
    
    reported by Wilds on the forum: https://forum.kerbalspaceprogram.com/index.php?/topic/184740-solved-losing-300-performance-after-time-warping/
    JonnyOThan authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    a79478e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8ea741c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3b641b7 View commit details
    Browse the repository at this point in the history
  13. Create zh-cn.cfg (#99)

    #
    tinygrox authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    033825f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9027095 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    cb2e196 View commit details
    Browse the repository at this point in the history
  16. typo fix

    NathanKell authored and gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    c239cdf View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    95ca4a7 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9f19ce3 View commit details
    Browse the repository at this point in the history
  19. StockAlarmCustomFormatterDate : issue was fixed in KSP 1.12.4 so the …

    …patch doesn't apply to this version anymore
    gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    35d3900 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    eaf850c View commit details
    Browse the repository at this point in the history
  21. 1.24 version bump

    gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    e3be82e View commit details
    Browse the repository at this point in the history
  22. Readme tweaks

    gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    10bbf5e View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    17e6435 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    3e2f888 View commit details
    Browse the repository at this point in the history
  25. Working implementation. Still todo :

    - Backport of the texture cache (TextureLoaderOptimizations)
    - Unpatching after loading to prevent breaking stock/MM database reload feature, as well as runtime drag cube generation
    gotmachine committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    f25724d View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. All done

    gotmachine committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    c787bdf View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2022

  1. FastLoader : code cleanup

    gotmachine committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    92ab653 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2022

  1. Configuration menu
    Copy the full SHA
    716d0e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e197945 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0010c74 View commit details
    Browse the repository at this point in the history
  4. readme update

    gotmachine committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    a62f4cb View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2023

  1. Configuration menu
    Copy the full SHA
    5e93a5b View commit details
    Browse the repository at this point in the history
  2. Fix some bugs

    gotmachine committed Jan 1, 2023
    Configuration menu
    Copy the full SHA
    4f4221e View commit details
    Browse the repository at this point in the history