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:
- Replace
new AssetThumbnailRenderer(...)withIEditorRenderBackend.CreateThumbnailRenderer(...), and useEditorRenderBackends.Find()to get the backend. Offscreen scene renders go throughCreateCapture. AssetThumbnailCacheis nowAssetThumbnailCache<TImage>: pass the image type your UI library draws.ProjectIcon.EncodePngandEncodeIcotake aRasterImage; decode withProjectIcon.DecodeorRasterImage.Decode.- Project icons no longer accept
.webp. An.icoicon must contain a PNG entry; the largest one is used. - Plugins that used SkiaSharp through Editor Core must reference SkiaSharp themselves.
DdsReadermoved to Editor Core andTextureFormatsto Engine Core; the namespaces are unchanged. The preview providers moved toTurian.Editor.Rendering.Vulkan.turian-cli theme verifyships 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:
- Code that sets
SceneTicker.Actions,SimulationorDataAssetsstill works but is obsolete. RegisterAddInputActions()andAddSimulationLoop()instead; DataAssets drain on their own. Code that callsTick,FixedTickorAfterFixedTicksonLifetimeHostorSubsystemScopeshould callRun(phase, time)instead. The obsolete members are removed in the next major release, and projects that treat warnings as errors must migrate now. - A subsystem that implements
IGameLoopSubsystemruns only in the phases it declares, even if it also implementsITickingSubsystemorIFixedTickSystem. turian-cli playmode --frames Nnow advances exactly one fixed step per frame, so N frames are N ticks on every machine. Add--realtimeto keep wall-clock frames.