User Tools

Site Tools


entityspawnloadingprogresstopic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

entityspawnloadingprogresstopic [2026/04/25 14:51] – created divinerentityspawnloadingprogresstopic [2026/04/25 15:25] (current) diviner
Line 5: Line 5:
 ^Broadcaster | [[IEntitySpawnLoadingService]] | ^Broadcaster | [[IEntitySpawnLoadingService]] |
  
-This topic is broadcast from [[IEntitySpawnLoadingService]] when a [[Chunk]] loads from a default state, as the [[EntitySpawn]] collection of that [[Chunk]] instantiates Entities. The value of the payload is the normalized loading progress of the operation with values ranging from 0.0 to 1.0. This broadcast is meant to be captured so that the UI layer can be notified and produce a loading report. The frequency and number of these broadcasts is determined by the LoadingFrequency value found in [[IChunkSystemStaticData]]. Even at very high LoadingFrequency, the topic is broadcast at least 2 times, once with progress value of 0f at the beginning of the load, and once with progress value of 1f at the end of the load. More broadcasts are injected in between as LoadingFrequency value decreases. At loading Frequency value of 1, there is one broadcast happening for every loaded [[Entity]].+This topic is broadcast from [[IEntitySpawnLoadingService]] when a [[Chunk]] loads from a default state, for every scene of that Chunk that has an associated [[EntitySpawn]] collection, as each [[EntitySpawn]] collection instantiates Entities. The value of the payload is the normalized loading progress of the operation of a given [[EntitySpawn]] collection with values ranging from 0.0 to 1.0. This broadcast is meant to be captured so that the UI layer can be notified and produce a loading report for that collection. The frequency and number of these broadcasts is determined by the LoadingFrequency value found in [[IChunkSystemStaticData]]. Even at very high LoadingFrequency, the topic is broadcast at least 2 times for each collection, once with progress value of 0f at the beginning of the collection'load, and once with progress value of 1f at the end of the collection'load. More broadcasts are injected in between as LoadingFrequency value decreases. At loading Frequency value of 1, there is one broadcast happening for every loaded [[Entity]] of that collection.
entityspawnloadingprogresstopic.txt · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki