Skip to content

Conversation

@dfgHiatus
Copy link
Collaborator

I've swapped out the Windows-exclusive DispatcherQueue for a cross-platform SynchronizationContext. My goal is to bring the changes from VRCFaceTracking 5.4.X.X to VRCFaceTracking.Avalonia.

TODOs:

  • I need to update the .csproj to handle all the fancy copying around, any help on this would be appreciated.

Notes:

  • I haven't tested this on Windows yet.
  • Do we even need thread marshaling in the first place? We could probably just drop this.

@dfgHiatus dfgHiatus self-assigned this Jan 11, 2026
@dfgHiatus dfgHiatus added the enhancement New feature or request label Jan 11, 2026
Copy link
Owner

@benaclejames benaclejames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this on Windows. None of the dispatched calls work anymore.

https://github.com/microsoft/microsoft-ui-xaml-specs/blob/master/winui3/DispatcherQueueUpdates.md

DispatcherQueue is created for WinUI3 due to the lack of built-in dispatcher.

@dfgHiatus
Copy link
Collaborator Author

Good to know. What are we using these dispatched calls for? I'm thinking I can create a hybrid mechanism to use the DispatcherQueue on Windows and the SynchronizationContext on other platforms.

@benaclejames benaclejames marked this pull request as draft January 12, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants