Skip to content

en platform build runtime

nullus-docs-bot edited this page Oct 14, 2026 · 2 revisions

Game Runtime and Asset Manifests

中文 | English | Docs | Repository

The editor produces artifacts and the Game runtime consumes them. This page covers how the runtime starts, how it loads assets, and the command-line entry point.

Runtime entry points

Executable Purpose
Launcher Project list, project creation, and opening projects
Editor The editor and its Play mode
Game Standalone execution of project content

All three share the same runtime modules: the scene system, asset database, render pipeline, and script backends are one implementation. Game is not a stripped copy of the editor.

Game command line

Game [options] [project_path]
Option Notes
--backend <name> / -b <name> Select the graphics backend
--renderdoc / --no-renderdoc Toggle RenderDoc integration
--capture-after-frames <N> Auto-capture after N presents, enabling RenderDoc
--material-validation-output <path> Write a renderer readback PNG for material validation
--material-validation-summary <path> Write material validation analysis text
--material-validation-after-frames <N> Run material validation after N presents
--material-validation-swapchain Capture the presented Game output
--help / -h Help

project_path may be a .nullus project file or a project directory.

Game.exe TestProject.nullus
Game.exe --backend dx12 TestProject

Asset manifests

At startup the runtime resolves the runtime asset database from project settings:

  1. Locate the project settings file.
  2. Resolve the runtime artifact database path from project settings.
  3. Load the runtime asset database.
  4. Prewarm root assets such as materials as needed.
project settings -> runtime artifact database -> asset reference resolution -> resource prewarm

Artifact manifests record a target platform and loader per artifact, and the runtime only accepts artifacts matching the current platform. ArtifactType covers model, mesh, material, texture, skeleton, skin, animation clip, morph target, Prefab, scene, shader, audio, UI document, style sheet, font, and localization table.

Prefab roots generated by model import reference their embedded meshes and materials as sub-assets, using each sub-asset's own source identity. That lets runtime prewarm reach those materials without changing asset or serialization formats.

Runtime artifact authorization

The runtime only reads artifact paths registered as authorized. Unauthorized paths are rejected and logged, so a game process cannot reach arbitrary files inside the project. Authorization is established from manifests during startup.

Project file and session

The Game runtime reads the project file's startup options:

  • x_resolution / y_resolution / fullscreen: window and presentation
  • vsync: vertical synchronization, shared with the editor
  • graphics_backend: preferred backend
  • start_scene: startup scene, falling back to last_opened_scene when empty
  • dev_build: development build marker
  • enable_threaded_rendering: threaded rendering toggle
  • renderdoc_startup_capture_frames: automatic startup capture

The full key list is in Editor and Project Settings.

Packaging and distribution

The repository has no player-facing packager yet. What exists is:

  • Build actions triggered from the editor menu (Build game, Build game and run, Temporary build)
  • The executable_name project key that names the target executable
  • Platform-specific artifacts and the runtime asset database

What is missing:

  • A final container format for packed and compressed assets
  • Dependency collection and deduplication
  • Installers and an update channel
  • A platform-independent distribution descriptor

These need a decision first about the final shape of runtime loading. If the runtime reads the project's artifact layout directly, no new container format is needed. If single-file distribution is required, the container, index, and verification scheme must be defined first. That tradeoff determines the packager interface and should not be left to implementation time.

Next steps

Nullus Engine

Home

中文

English

Clone this wiki locally