Skip to content

Commit 9426220

Browse files
authored
WindowsDX note about AOT support (#108)
1 parent bf4c1a9 commit 9426220

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/getting_started/packaging_games.md

+4
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ We recommend using the `.tar.gz` archiving format to preserve the execution perm
153153

154154
### PublishAot and PublishTrimmed
155155

156+
> [!IMPORTANT]
157+
> The WindowsDX target is not compatible with ```PublishAot``` or ```PublishTrimmed``` because it uses Windows Forms, which is (as of .NET 9) not compatible with these options. If you need trimming or AOT compilation for desktop platforms, please consider using the DesktopGL target instead of WindowsDX.
158+
159+
156160
The ```PublishAot``` option optimises your game code "Ahead of Time" for performance. It allows you to ship your game without the need to JIT (Just In Time compile), and will basically natively compile your game.
157161

158162
```PublishAot``` binaries are much faster, which is typically desired for games. It however comes with limitations, like the inability to use runtime reflection and runtime code generation (IL emition).

0 commit comments

Comments
 (0)