Skip to content

--forceupdate doesnt work multithreaded. #10370

Closed
Closed

Description

@kgncengiz

Is your feature request related to a problem?

--forceupdate doesn't work multithreaded and it's too slow for updating big worlds. updateing 15k*15k world took 30 minutes.

Describe the solution you'd like.

make the world updater update chunks parallel not sequentially.

Describe alternatives you've considered.

there is no alternatives.

Other

have a good day.

Activity

  1. electronicboy commented on Mar 29, 2024

    @electronicboy
    Member

    It already is threaded, but the math for determining cores could maybe be less restrictive
    int threads = Runtime.getRuntime().availableProcessors() * 3 / 8;

  2. transferred this issue fromPaperMC/Foliaon Mar 29, 2024
  3. Spottedleaf commented on Mar 29, 2024

    @Spottedleaf
    Member

    It may be worthwhile to add a startup flag to control the number of threads.

  4. kgncengiz commented on Mar 30, 2024

    @kgncengiz
    Author

    It already is threaded, but the math for determining cores could maybe be less restrictive int threads = Runtime.getRuntime().availableProcessors() * 3 / 8;

    I thing math needs to be improved becouse i give 8 cores to the folia for test and it peaked at 400%(1 core=100%) its half the max speed of my hardware. Btw when i give 16 cores it peaked at 1000%(1 core=100%).

  5. added
    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.
    and removed on Mar 30, 2024
  6. locked and limited conversation to collaborators on Apr 28, 2024
  7. converted this issue into a discussion #10602 on Apr 28, 2024
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

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: featureRequest for a new Feature.

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions