Skip to content

Stride 4.4.3

Latest

Choose a tag to compare

@stride-release stride-release released this 17 Nov 09:33
· 1693 commits to master since this release

Highlights

⚡ Shader compilation is much faster

The new SDSL compiler of 4.4 got its first performance pass: shaders compile 13 to 27 times faster than in 4.3 on Direct3D 12 and Vulkan, and 4 times faster on Direct3D 11, where FXC takes most of the time. Compared to 4.4.2, they compile 2 to 6 times faster.

Stride shader compile time of 428 effects in 4.3, 4.4.2 and 4.4.3: Vulkan 166 s, 35 s and 6.1 s, Direct3D 12 120 s, 39 s and 9.5 s, Direct3D 11 120 s, 59 s and 28 s.

See also the Stride 4.4 release notes.

What's Changed

Auto-generated; a maintainer may hand-edit.

🔊 Audio

  • Behavior change: looping sounds and streamed sounds started while the engine is paused now begin playing when the engine resumes. Before, they played straight away (@sasvdw, #4002)
  • Pausing and resuming the engine's audio now also pauses and resumes dynamic (procedural) sound sources (@sasvdw, #4000)
  • Listener and emitter velocities, used for the Doppler effect, are now measured in units per second (@sasvdw, #3998)
  • An audio emitter with a zero world matrix no longer stops the other emitters from updating (@sasvdw, #4004)
  • The worker that feeds dynamic sound sources keeps running when one source throws an error or fails to dispose, so other sources keep playing (@sasvdw, #3993)
  • Calling Dispose more than once on a dynamic sound source is now safe (@sasvdw, #4018)

🎮 Graphics & Rendering

  • Shadow casters and the depth prepass compile without a pixel shader again. This makes them cheaper to render (@xen2, #4021)
  • The light-probe prepass now keeps the depth value set by the Clear renderer (@sasvdw, #4016)
  • The Clear renderer only clears stencil when the depth buffer has a stencil part (@sasvdw, #4017)
  • Buffer.Vertex.New(device, size, usage) now creates a buffer of the requested size (@sasvdw, #3996)
  • Fixed how Direct3D 11 passes source data when updating a GPU resource from memory (@sasvdw, #3573)
  • The depth min/max computation now correctly prepares the texture it reads between passes (@xen2, 1dc5dc5)
  • Very large shader effects no longer fail with an error when their effect ID is computed. Existing IDs stay the same (@xen2, 2ef99cb)

⚡ Shader compilation performance

  • Direct3D 11 effects that produce the same shader code now share the conversion and compilation work instead of repeating it (@xen2, #4007)
  • The shader mixer, which combines shader classes into an effect, is faster and allocates less memory (@xen2, #3981, #3982, #3984, #4012)
  • Compiled shaders are stored more compactly in memory while they are processed (@xen2, #4008)
  • The effect compiler skips work it only needs when a compile fails: it writes the debug disassembly and formats error locations only on failure (@xen2, #4005, #4011)

🥽 VR

  • OpenXR on Direct3D 11 no longer shows a black image in the headset (@sasvdw, #3795)

🎬 Video

  • Seeking a video while paused waits for the new frame in real time, so the wait works even when game time is paused or slowed (@xen2, #3957)
  • On Android, a new seek no longer shows a frame that was decoded for the previous seek (8f1505e)

🧨 Physics

  • HasEndedFromComponentRemoval now correctly reads true in scripts that await CollisionEnded when a component is removed (@xen2, #3957)

🕹️ Input

  • Device detection for DirectInput controllers now runs in the background, so the game doesn't stall while it looks for devices (@xen2, #3941)
  • A locked mouse in a Windows Forms game no longer reports movement while the game is in the background (@xen2, #3941)

🧮 Math

  • Matrix.Transpose(in Matrix) now returns the correct transposed matrix (@sasvdw, 9ab5871)

📦 Content, IO & Packages

  • Writes to the object database now run in parallel and are faster. A forced write replaces its file in a single step, so an interrupted write no longer leaves a broken file (@xen2, #3944)
  • Moving a file between two file system providers now correctly deletes the source file (@xen2, #3945)
  • If watching a folder for changes fails, the watch now starts again, and changes made in the meantime are picked up, including shader files reloaded by the effect system (@xen2, #3985)
  • Closing a folder watcher no longer pauses for up to 200 ms (@xen2, #3943)
  • Package prerelease versions are now compared the same way NuGet compares them (@xen2, #3980)
  • On Linux, the user data folders are always full paths, even before ~/.local/share exists (@xen2, fe0dcd6)

🖥️ Editor / Game Studio

  • When a model is copied into the project, the files it needs are now copied with it (@sasvdw, #3814)
  • Game Studio now notices source and asset files that changed while its folder watch had stopped working (@xen2, #3985)
  • A package without a Windows project can get one back through Update package (@Kryptos-FR, #3920)
  • Editing a list of flag enum values no longer causes an error (@xen2, #3939)

🔧 Under the hood

  • Shader compiler internals were restructured to support the faster storage, with extra safety checks in Debug builds (@xen2, #4008)
  • Fixed XML documentation warnings in the shader compiler (@ds5678, #3786)
  • The test runner package xunit.runner.stride is renamed Stride.XunitRunner, and the project upgrader updates references to it (@xen2, #3942)
  • Headless game tests no longer run at 15 fps (@xen2, #3957)
  • Linux game tests now use an audio output that needs no sound device (@sasvdw, #4013)
  • Updated the sample screenshot test baselines (@xen2, 77eebe5)
  • The release workflow deploys its own build, and a deploy only goes ahead when the CI run for the released commit passed (@xen2, #3940, 4d4c6ef)
  • Nightly builds are only published when CI and the scheduled tests have passed, and every push to the main branches runs the screenshot test suites (@xen2, #4022, e05eb0f)
  • Fixed how the release-notes tooling credits backported commits (@xen2, 2def1d6)

Full Changelog: releases/4.4.2...releases/4.4.3