User Tools

Site Tools


entityspawnloadingprogresstopic

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
entityspawnloadingprogresstopic [2026/04/26 06:46] divinerentityspawnloadingprogresstopic [2026/04/26 07:20] (current) diviner
Line 2: Line 2:
 ===== EntitySpawnLoadingProgressTopic ===== ===== EntitySpawnLoadingProgressTopic =====
  
 +^Type | [[Topic]] |
 ^Payload | [[ValueMessage]]<float> | ^Payload | [[ValueMessage]]<float> |
 ^Broadcaster | [[IEntitySpawnLoadingService]] | ^Broadcaster | [[IEntitySpawnLoadingService]] |
  
 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's load, and once with progress value of 1f at the end of the collection's 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. 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's load, and once with progress value of 1f at the end of the collection's 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.1777185971.txt.gz · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki