Skip to content

Trigger desync debug action, faster desync report generation, and separated metadata in the report#667

Merged
notfood merged 9 commits intorwmt:devfrom
mibac138:desync-misc
Sep 8, 2025
Merged

Trigger desync debug action, faster desync report generation, and separated metadata in the report#667
notfood merged 9 commits intorwmt:devfrom
mibac138:desync-misc

Conversation

@mibac138
Copy link
Copy Markdown
Member

@mibac138 mibac138 commented Sep 5, 2025

This adds a debug action to trigger a desync, improves desync generation by: making it faster, on my system it takes ~0.9s, where as before it took ~1.8s; the game no longer freezes when saving the desync report (saving now takes ~50ms, because the slowest code is run in the background - metadata generation); added a new file to the desync report with just the metadata (mods, patches, harmony versions).

It can easily generate over 150kB of data. Moving it out to a separate
file makes sense content-wise and makes it easier to browse the log file
Internally Harmony.VersionInfo iterates over all patched methods and
gets generates PatchInfo for each of them. This is something we already
do ourselves for describing the patched methods list. This probably
woudn't be much of a issue, however PatchInfos are stored at rest only
as a serialiazed binary blob, which means they all are deserialized when
generating the report. The base game with this mod has over 1000
patches which causes the whole process to be time consuming.
@notfood notfood added enhancement New feature or request. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). labels Sep 5, 2025
@notfood notfood moved this to In review in 1.6 and Odyssey Sep 5, 2025
@notfood notfood merged commit b50cb4c into rwmt:dev Sep 8, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in 1.6 and Odyssey Sep 8, 2025
@mibac138 mibac138 deleted the desync-misc branch September 10, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). enhancement New feature or request.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants