FSectorEntityStreamer
- Module
- Game
- Header
#include "Streaming/SectorEntityStreamer.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
FSectorEntityStreamer() = default | FSectorEntityStreamer | |
~FSectorEntityStreamer() | ~FSectorEntityStreamer | |
FSectorEntityStreamer(const FSectorEntityStreamer&) = delete | FSectorEntityStreamer |
Public functions
| Returns | Name | Description |
|---|---|---|
FSectorEntityStreamer* | GetActive | Out of line: the renderer's sector proxies read it from another DLL, and an inline read of the static would need the data member imported. |
FSectorEntityStreamer& | operator= | |
void | Attach | Installs the StreamingManager callbacks targeting scene. |
void | Detach | |
size_t | SpawnedSectorCount | |
size_t | SpawnedRootCount | Live entity count across resident sectors (only fragments whose data layer is active are spawned). |
bool | IsSectorContentLive | |
void | CollectSectorEntities | Every entity a resident sector spawned — its fragment roots and their descendants — appended to out. |
void | TickPending | Sector fragments instantiate over multiple frames instead of all-at-once in the load callback (the open-world hitch). |
size_t | PendingCount | |
void | FlushToJournal | |
bool | IsCollisionProxyLive | Collision proxies: a coarse static collider stands in for every sector whose content is not live, so a long trace still hits what the HLOD proxy draws. |
size_t | CollisionProxyCount | |
void | SyncCollisionProxies | |
FSectorCloudResidency& | CloudResidency | The scanned-cloud half of the same swap: points inside a cell leave with it and come back with it. |
const FSectorCloudResidency& | CloudResidency |
Function details
FSectorEntityStreamer
FSectorEntityStreamer() = default~FSectorEntityStreamer
~FSectorEntityStreamer()FSectorEntityStreamer
FSectorEntityStreamer(const FSectorEntityStreamer&) = deleteGetActive
static FSectorEntityStreamer* GetActive()Out of line: the renderer's sector proxies read it from another DLL, and an inline read of the static would need the data member imported.
operator=
FSectorEntityStreamer& operator=(const FSectorEntityStreamer&) = deleteAttach
void Attach(Scene* scene)Installs the StreamingManager callbacks targeting scene. Call after StreamingManager::Initialize; replaces any previous hooks.
Detach
void Detach()SpawnedSectorCount
size_t SpawnedSectorCount() constSpawnedRootCount
size_t SpawnedRootCount() constLive entity count across resident sectors (only fragments whose data layer is active are spawned).
IsSectorContentLive
bool IsSectorContentLive(const SectorCoord& coord) constCollectSectorEntities
void CollectSectorEntities(const SectorCoord& coord, std::vector<EntityID>& out) constEvery entity a resident sector spawned — its fragment roots and their descendants — appended to out. What a sector standing in with its HLOD proxy hides.
TickPending
void TickPending(float budgetMs = 1.0f)Sector fragments instantiate over multiple frames instead of all-at-once in the load callback (the open-world hitch). Call once per frame; budgetMs bounds main-thread instantiation time.
PendingCount
size_t PendingCount() constFlushToJournal
void FlushToJournal()IsCollisionProxyLive
bool IsCollisionProxyLive(const SectorCoord& coord) constCollision proxies: a coarse static collider stands in for every sector whose content is not live, so a long trace still hits what the HLOD proxy draws. Attach spawns them for every streamed-out sector; TickPending drops one when its fragments finish spawning; unload builds one (if the cook did not) and puts it back.
CollisionProxyCount
size_t CollisionProxyCount() constSyncCollisionProxies
void SyncCollisionProxies()CloudResidency
FSectorCloudResidency& CloudResidency()The scanned-cloud half of the same swap: points inside a cell leave with it and come back with it. FlushToJournal is also the save barrier — the save path calls it before it serializes, which is the moment every parked point has to be back in its accumulator.
CloudResidency
const FSectorCloudResidency& CloudResidency() const