Docs / The project / Architecture
From content files to the screen
- Files. Every loader reads through
omsi_cfg::vfs. Content roots and mounted.ziparchives look the same, and file names resolve as Windows resolves them. - Parsing. The format crates turn files into plain data: the map (
omsi-map), its objects and splines (omsi-scenery), models (omsi-model,omsi-o3d), vehicles (omsi-vehicle), timetables, scripts (compiled byomsi-script). - The map index.
omsi-worldindexes the whole map's splines and objects. - Tiles. The streamer loads tiles around the camera and the player's bus. On the rayon pool
each tile is parsed, its terrain and splines tessellated (
omsi-geometry) and its object types loaded. Textures decode and compress on workers. - The world the simulation reads. Tile ground, stop lists, obstacles and map facts are
published as an immutable snapshot (
omsi_sim::world_data::WorldData). Lanes and light programs go to the traffic throughomsi_sim::handover::Inbox. - Simulation. Each tick,
omsi-simadvances vehicles, scripts, traffic, people and the timetable. - View sync.
omsi-app/src/view_sync/turns simulation state into renderer instances (positions, animation matrices, materials, script textures, lights). - Scene and render.
omsi-sceneholds the renderer-side world.omsi-renderculls, records and draws, then the interface (omsi-ui) is drawn over it and the frame is presented.
Something wrong or missing? Fix it on GitHub or open an issue.