Uploaded image for project: 'Minecraft API'
  1. Minecraft API
  2. MCAPI-104

Multithreaded plugin processing

    XMLWordPrintable

    Details

      Description

      I think in the current versions of Bukkit all event handlers for one specific event are processed after each other because of priorities.

      Support for multithreading is also mentioned in https://mojang.atlassian.net/browse/MCAPI-45 and https://mojang.atlassian.net/browse/MCAPI-59 , but not specific to plugin processing.

      Maybe it is possible to process all handlers in parallel and include the priority of the handler in the result (and for changes in the event-object), then the overall result can be detemined after all handlers are done working. Also modifications in the world can somehow prioritized if something gets changed in the same position by different plugins (this melongs more to the Concurrency proposal MCAPI-59).

      I think it may be a huge benefit in multithreading to not slow down the ticks because many plugins run sequential every tick.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              darktemp Alexander Schäffer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: