Skip to content

Prevent region compression from blocking the main thread #8

Description

@nolife99

What's your idea?

Sometimes region I/O will completely block the main thread as it's saving files. I do have C2ME OpenCL installed, I have no clue if this is the reason why, but nevertheless it would help to have it write on a background thread if possible or at least unblock the main thread.

[12:41:10] [linearreader-flush-barrier] [linearreader/WARN]: [LinearReader] Slow region save: r.-1.1.linear took 27989ms (threshold 500ms). Check disk health.
[12:41:10] [linearreader-flush-barrier] [linearreader/WARN]: [LinearReader] Slow region save: r.-1.-1.linear took 27990ms (threshold 500ms). Check disk health.
[12:41:10] [linearreader-flush-barrier] [linearreader/WARN]: [LinearReader] Slow region save: r.1.1.linear took 27989ms (threshold 500ms). Check disk health.
[12:41:10] [linearreader-flush-barrier] [linearreader/WARN]: [LinearReader] Slow region save: r.0.-1.linear took 28060ms (threshold 500ms). Check disk health.

Why should this be added?

Prevent huge stalls when regions are being written. Gameplay-wise, I'll be completely blocked from gameplay for 15 seconds or more while the regions are being saved, which is very annoying

Anything else?

Hardware:
CPU: Intel Core Ultra 7 270K Plus
SSD: Acer Predator GM7000 Heatsink 1TB

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performance issueThe game's performance is not good

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions