Skip to content

Redesign lighting logic #8

@stdNullPtr

Description

@stdNullPtr

Currently, for every AIR block that needs to be lit, a new BukkitRunnable is scheduled to revert it. This can introduce a significant overhead when player count arises.

Maybe we can insert all lit blocks into a queue and have a scheduler pop the last element? But each player must have a personal scheduler. This idea will be scrapped entirely in favor of lighting using packets.

Update: It turns out a lot of issues arise with the initial approach of swapping air blocks to light blocks. The lighting logic must be redesigned to use packets and properly lit a location, instead of replacing blocks with LIGHT material.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions