Use event tracking for increased efficiency #4

Closed
opened 2024-01-10 21:01:03 +01:00 by EpicKnarvik97 · 0 comments

Making and calling events when a player enters or leaves a clear area could potentially be a lot more efficient. Rather than checking if a player is in a clear region in every event call, a map player -> bool could be used to instantly check whether any event involving that player needs any clear region checking. This is not useful for the events checking if a player is performing an action across clear region borders, as the player might fiddle with blocks in the clear region from the outside.

If per-region toggles are implemented, the map could be easily altered to give the player's current clear region.

Making and calling events when a player enters or leaves a clear area could potentially be a lot more efficient. Rather than checking if a player is in a clear region in every event call, a map player -> bool could be used to instantly check whether any event involving that player needs any clear region checking. This is not useful for the events checking if a player is performing an action across clear region borders, as the player might fiddle with blocks in the clear region from the outside. If per-region toggles are implemented, the map could be easily altered to give the player's current clear region.
EpicKnarvik97 added the
enhancement
label 2024-01-10 21:01:03 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: EpicKnarvik97/ClearOnWorldGuard#4
No description provided.