Browse Source

Merge pull request #4566 from AvaloniaUI/fixes/ui-thread-rendertimer-windows

use uithread render timer on windows. to prevent opengl crashing.
pull/4567/head
danwalmsley 6 years ago
committed by GitHub
parent
commit
5d3d2171af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Windows/Avalonia.Win32/Win32Platform.cs

2
src/Windows/Avalonia.Win32/Win32Platform.cs

@ -88,7 +88,7 @@ namespace Avalonia.Win32
.Bind<IPlatformSettings>().ToConstant(s_instance)
.Bind<IPlatformThreadingInterface>().ToConstant(s_instance)
.Bind<IRenderLoop>().ToConstant(new RenderLoop())
.Bind<IRenderTimer>().ToConstant(new DefaultRenderTimer(60))
.Bind<IRenderTimer>().ToConstant(new UiThreadRenderTimer(60))
.Bind<ISystemDialogImpl>().ToSingleton<SystemDialogImpl>()
.Bind<IWindowingPlatform>().ToConstant(s_instance)
.Bind<PlatformHotkeyConfiguration>().ToSingleton<PlatformHotkeyConfiguration>()

Loading…
Cancel
Save