Skip to content

Add option to limit the pregen speed #426

@Strokkur424

Description

@Strokkur424

Feature request

Many people have requests a feature, which limits the generation speed of chunky in order to be able to let it run in the background whilst players are on the server, without it affecting their gameplay. I think this is a sensible feature to support considering the high demand for it.

Proposed changes

My idea would be the introduction of a new subcommand for /chunky:

/chunky maxspeed 30 -- limits the max generation speed to 30 CPS

Implementation details

From a technical standpoint, this could be accomplished by generating the first, in this example, 30 chunks, taking the time it took (a.e. 0.2s), and adding slight delays before dispatching generation tasks. I am not a chunky internals expert, so this might not be feasible without a rewrite to some degree, but I think many people would appreciate a limiter of this type.

EDIT: Preferably this would only limit the generation of new chunks, not limit the speed at which existing chunks are "touched".

Metadata

Metadata

Assignees

No one assigned

    Labels

    commonIssues related to the common implementationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions