Browse Source
Merge pull request #8614 from Maruhl/master
Unused Stopwatch removed
composition/license
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
9 deletions
-
src/Windows/Avalonia.Win32/WinRT/Composition/WinUICompositorConnection.cs
|
|
|
@ -120,16 +120,14 @@ namespace Avalonia.Win32.WinRT.Composition |
|
|
|
|
|
|
|
private void RunLoop() |
|
|
|
{ |
|
|
|
using (var act = _compositor5.RequestCommitAsync()) |
|
|
|
act.SetCompleted(new RunLoopHandler(this)); |
|
|
|
|
|
|
|
while (true) |
|
|
|
{ |
|
|
|
var st = Stopwatch.StartNew(); |
|
|
|
using (var act = _compositor5.RequestCommitAsync()) |
|
|
|
act.SetCompleted(new RunLoopHandler(this)); |
|
|
|
while (true) |
|
|
|
{ |
|
|
|
UnmanagedMethods.GetMessage(out var msg, IntPtr.Zero, 0, 0); |
|
|
|
lock (_pumpLock) |
|
|
|
UnmanagedMethods.DispatchMessage(ref msg); |
|
|
|
} |
|
|
|
UnmanagedMethods.GetMessage(out var msg, IntPtr.Zero, 0, 0); |
|
|
|
lock (_pumpLock) |
|
|
|
UnmanagedMethods.DispatchMessage(ref msg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|