Repository navigation
en large scenes streaming
中文 | English | Docs | Repository
The residency system decides which resources should currently be in memory. It must satisfy three constraints at once: data the frame needs must be present, memory usage has a ceiling, and loading must not block the frame.
The system keeps two things separate:
| Concept | Meaning |
|---|---|
| Interest set | Resources the current view and logic consider necessary |
| Resident set | Resources already loaded and in memory |
The difference between them is the pending load queue. Separating them means duplicate requests can be merged, load order can follow priority, and loads can be deferred when the budget is tight without breaking correctness.
- Multiple requests for the same resource merge into one entry.
- Requests carry priority; scene mesh artifacts are submitted at high priority ahead of material and texture decode.
- Commits and evictions are accounted in one queue, exposing request, commit, and evict counts.
Budgets constrain three resource kinds:
- CPU memory
- GPU memory
- Per-frame upload volume
When a budget is exceeded, eviction follows priority and recency rather than failing outright. Eviction respects frame-retirement pins: a resource referenced by the current frame cannot be reclaimed.
Rendering is multi-threaded, so the CPU no longer referencing a resource does not mean the GPU has finished with it. Residency keeps retirement pins that cooperate with the frame resource ring and GPU fences so reclamation happens at a genuinely safe point.
Editor startup uses the asynchronous scene resource pipeline. Windows defaults to pipelined, other platforms to async:
- Scene mesh artifacts are submitted at high priority.
- Material and texture decode stay at normal priority to keep the queue fair, so heavy geometry never starves textures.
To compare against the previous behavior, switch back to the synchronous prewarm path:
Editor.exe --editor-startup-resource-pipeline legacy <project>Residency exposes request, commit, and evict counts together with reasons. Reading them follows the same approach as other telemetry; see Profiling and Graphics Debugging.
The editor currently exposes a telemetry summary switch for thumbnails (--editor-thumbnail-telemetry-summary <path>). Residency counters are published with renderer statistics and have no separate summary switch.
- Terrain and world partitioning are not implemented, so region-based streaming of a world is not available yet.
- Cubemap runtime loading and streaming mips remain extension points; see Models, Meshes, and Textures.
- Default budgets are conservative and should be tuned per project.
These boundaries are recorded in the Feature Status Matrix, and the implementation order follows the dependencies listed in the related chapters.
- Visibility and Occlusion removes invisible objects first.
- LOD and HLOD reduces distant load with proxies.
Nullus Engine
中文
- 认识 Nullus
- 安装与快速入门
- 使用编辑器
- 场景与对象
- Prefab 工作流
- 资产与内容管线
- 渲染、材质与光照
- 大场景与资源管理
- 游戏逻辑与脚本
- 用户界面
- 动画与角色
- 物理与交互
- 音频、特效与媒体
- AI 与联网
- 平台、构建与发布
- 扩展与引擎架构
- 调试、性能与质量
- 参考手册
- 示例与发展路线
English
- Getting to Know Nullus
- Install and Quick Start
- Using the Editor
- Scenes and Objects
- Prefab Workflow
- Assets and Content Pipeline
- Rendering, Materials, and Lighting
- Large Scenes and Resource Management
- Gameplay and Scripting
- User Interface
- Animation and Characters
- Physics and Interaction
- Audio, Visual Effects, and Media
- AI and Networking
- Platforms, Builds, and Releases
- Extending the Engine
- Debugging, Performance, and Quality
- Reference
- Examples and Roadmap