App and core
The App that runs a NEO game, its main loop and schedules, time and the fixed timestep, transforms, the math library, background tasks and windows.
On this page
These pages cover the foundation every NEO game stands on: the App that holds the world and runs the main loop, the clocks that measure time, where things are in space, the math types, work that runs in the background and the windows the game draws into.
If you haven't yet, read ECS first: everything here is built from entities, components, resources and systems.
Pages#
| Page | What it covers |
|---|---|
| The App | App, the main schedule and its order, runners, exiting, headless apps and sub-apps. |
| Time | Time, real and virtual time, pausing and slow motion, Timer, Stopwatch and delayed commands. |
| Fixed timestep | FixedUpdate, Time<Fixed>, handling input, and smoothing movement between steps. |
| Transforms | Transform and GlobalTransform, moving and rotating, parents and children, and propagation. |
| Math | Vectors, quaternions and directions, shapes, bounding volumes and ray casts, curves and easing, random sampling. |
| Tasks | The task pools, running work in the background, and getting the results back into the world. |
| Windows | Window settings, modes, the cursor, vsync, power saving, window messages and multiple windows. |
One frame, in order#
Each time the app updates, the main schedule runs these schedules in order:
First → PreUpdate → RunFixedMainLoop (FixedUpdate 0 or more times) → Update → SpawnScene → PostUpdate → LastThe first update also runs PreStartup, Startup and PostStartup once, before First. Engine plugins do most of their work in PreUpdate (reading input, for example) and PostUpdate (transform propagation, preparing what to draw). Your game logic usually goes in Update or FixedUpdate. See Schedules.