Skip to content

LoadFixes is no longer needed #2

@GER-Space

Description

@GER-Space

The LoadFixes Patch is no longer relevant for BT 1.9.1 as is actually slows down the loading process.

The ParseJson function actually has now the same try-catch logic as this patch and will only call StripHBSCommentsFromJSON() when needed.

In my testing I got an overall processing time of an unpatched StripHBSCommentsFromJSON() of 70ms, which is low enough to be ignored. (loading base game + loading a save file)

The function itself could be improved (using a instanced precompiled regex and a better regex itself), but considering the overall time wasted there is not worth it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions