You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2c6405a
Browse filesBrowse the repository at this point in the historyBrowse files
WinUI 3 apps froze a few seconds after they started rendering every
frame: timers, requestAnimationFrame and native callbacks all stopped
while the UI thread sat idle in GetMessage.
WinUI's dispatcher is a Microsoft.UI.Dispatching.DispatcherQueue, so
init_ui_dispatcher finds no Windows.System.DispatcherQueue and makes
its own controller. needs_win32_pump() was then true under XAML too,
and runtime_pump_timers (and the napi engines' host pump) drained the
thread's messages with PeekMessage/DispatchMessage from inside the
host's DispatcherQueue work item. Dispatching the queues' wake
messages re-entrantly can lose a wake, after which XAML's queue, its
timers and the runtime's own queue never run again. A frame loop
makes it happen within seconds.
host_pumps_messages() now detects a XAML host (Microsoft.UI.Xaml.dll
loaded), and the host pumps leave messages to XAML's loop there.
Console executables and workers keep pumping.
Also: Application.Current came back as Microsoft.UI.Xaml.
IApplicationOverrides, with no Exit, so core could never end the app
when its last window closed. The template's C# App has no WinMD, so
CsWinRT reports one of its interfaces as the runtime class name.
resolve_runtime_class no longer swaps a declared class for an
interface name.
0 commit comments