QWQ 性能辅助
Here's the full English translation of your version 0.
Here's the full English translation of your version 0.1.0 update log:
I've tried all sorts of ways to improve the game's TPS, and maybe FPS too if I'm lucky (my technical skills are limited).
This is my first time writing a MOD. Some scenes used AI, and my manually written parts might be uneven in quality. Please don't be harsh, thanks!
I pieced everything together using my "crazy brain" with advice from various blogs and AI.
Update version: 0.1.0:
Startup performance optimization (tested with 169 MODs – startup time reduced from 3 min 57 sec to 2 min 27 sec):
GenTypes.ClearCache permanently disabled: During loading, all ClearCache calls return false, preventing the O(N²) full assembly rescan triggered by clearing the entire type cache after every Assembly.LoadFrom.
GenTypes.GetTypeInAnyAssemblyRaw prefix: 24,862 pre-warmed types achieve O(1) hits; type lookups in ParseAndProcessXML no longer scan assemblies.
FastStart cache runtime activation: On fingerprint match, skips ApplyPatches (27s → 0.4s), ErrorCheckPatches, and ClearCachedPatches; forces XmlInheritance to zero to avoid duplicate registration.
ReflectionLookupCache full pre-warm: Scans all loaded assemblies early in startup, pre-storing 24,862 types into a dictionary.
Mod load order fix: Places Reasonix above Harmony; removes loadAfter:brrainz.harmony to avoid mysterious sorting warnings. (666 declared independence.)
Known limitations: LoadAllPlayData (~56s) and ParseAndProcessXML (~50s) are still inside the game's core pipeline and out of Harmony's reach. The Preloader direction is reserved but not activated.
QQ discussion group: 692917981
In summary, I can't guarantee there won't be issues. I'll put it out for now and make fixes as needed. (