Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6736

AsyncChunkPreLoadEvent: Ability to load chunk plugin data simultaneously with Vanilla chunk loading

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 1.17
    • Yes

      I have a plugin that stores some data about each chunk in a database. Since Spigot only provides ChunkLoadEvent, there is no way to load the data before the chunk has finished loading.

      Spigot should have a AsyncPreChunkLoadEvent that is called asynchronously when a chunk is scheduled for loading, so that the data from the database can be loaded simultaneously.

      Also, there should be some synchronisation mechanism for the chunk loading thread to wait for the database thread to finish, before successfully loading the chunk (and calling ChunkLoadEvent).

      Implemented by PR

            Unassigned Unassigned
            Torm Torm
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: