AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.11k stars 2.26k forks source link

Create an autorelease pool for every render timer tick #17414

Closed kekekeks closed 3 weeks ago

kekekeks commented 3 weeks ago

Since render timer is ticking on a background thread that has no implicit autorelease pools, we should always have one before calling managed code that can technically make arbitrary callbacks to ObjC.

avaloniaui-bot commented 3 weeks ago

You can test this PR using the following package version. 11.3.999-cibuild0052975-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]