Upgrading to 5.0.0

Turian 5.0.0 is not released yet. It slims the engine core and the editor libraries, so most of its breaking changes affect code and plugins rather than projects. Scenes, prefabs and data assets need no conversion.

Change Who is affected Effort
Object pools are a brick games that use ObjectPool, NodePool or IPoolable add a brick and a using
Brick settings live in the editor code that reads IAppSettings.Bricks reference Editor Core
The editor links no renderer Studio and CLI plugins, editor tools use IEditorRenderBackend and RasterImage
Named game-loop phases engine subsystems, turian-cli playmode scripts fix obsolete warnings, check frame counts

Object pools are a brick

What changed: ObjectPool<T>, NodePool and IPoolable left the engine core for the org.mass4.turian.pooling brick, in the Turian.Pooling namespace.

What to do: add the org.mass4.turian.pooling brick in the Bricks panel, then add using Turian.Pooling; where pools are used.

Brick settings live in the editor

What changed: the game runtime no longer references the brick system. BricksSettings moved from Engine Core to Editor Core, and IAppSettings.Bricks is now an extension property in Editor Core.

What to do: editor code keeps settings.Bricks once it references Editor Core and imports Turian.Editor.Core. Game code cannot read the brick manifest any more; it was never meant to at runtime.

The editor links no renderer

What changed: Editor Core and turian-cli no longer depend on Vulkan or SkiaSharp. The editor reaches a renderer only through IEditorRenderBackend, which the Vulkan brick ships as Turian.Editor.Rendering.Vulkan.

What to do:

  1. Replace new AssetThumbnailRenderer(...) with IEditorRenderBackend.CreateThumbnailRenderer(...), and use EditorRenderBackends.Find() to get the backend. Offscreen scene renders go through CreateCapture.
  2. AssetThumbnailCache is now AssetThumbnailCache<TImage>: pass the image type your UI library draws.
  3. ProjectIcon.EncodePng and EncodeIco take a RasterImage; decode with ProjectIcon.Decode or RasterImage.Decode.
  4. Project icons no longer accept .webp. An .ico icon must contain a PNG entry; the largest one is used.
  5. Plugins that used SkiaSharp through Editor Core must reference SkiaSharp themselves.
  6. DdsReader moved to Editor Core and TextureFormats to Engine Core; the namespaces are unchanged. The preview providers moved to Turian.Editor.Rendering.Vulkan.
  7. turian-cli theme verify ships with Studio as a CLI plugin. A CLI installed without Studio no longer has it.

Named game-loop phases

What changed: the game loop runs named phases. Subsystems join them with IGameLoopSubsystem, and ordering hints use SubsystemDescriptor.After. Input actions, the simulation and DataAsset draining are ordinary subsystems now.

What to do:

  1. Code that sets SceneTicker.Actions, Simulation or DataAssets still works but is obsolete. Register AddInputActions() and AddSimulationLoop() instead; DataAssets drain on their own. Code that calls Tick, FixedTick or AfterFixedTicks on LifetimeHost or SubsystemScope should call Run(phase, time) instead. The obsolete members are removed in the next major release, and projects that treat warnings as errors must migrate now.
  2. A subsystem that implements IGameLoopSubsystem runs only in the phases it declares, even if it also implements ITickingSubsystem or IFixedTickSystem.
  3. turian-cli playmode --frames N now advances exactly one fixed step per frame, so N frames are N ticks on every machine. Add --realtime to keep wall-clock frames.

← All docs Edit this page