Skip to content

Commit

Permalink
OpenGL/WPF control uses tasks for rendering (avoiding stack-inlining …
Browse files Browse the repository at this point in the history
…due to STAThread)
  • Loading branch information
krauthaufen committed Nov 4, 2024
1 parent 0eede77 commit 6c0555d
Show file tree
Hide file tree
Showing 5 changed files with 385 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 5.5.5
- OpenGL/WPF control uses tasks for rendering (avoiding stack-inlining due to STAThread)

### 5.5.4
- OpenGL/WPF control uses `OnPainRender` again

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<OutputPath>..\..\..\bin\Release\</OutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="ThreadedRenderControl.fs" />
<Compile Include="RenderControl.fs" />
<Compile Include="SharingRenderControl.fs" />
<Compile Include="Application.fs" />
Expand Down
3 changes: 1 addition & 2 deletions src/Application/Aardvark.Application.WPF.GL/RenderControl.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open System.Windows.Forms.Integration
open Aardvark.Application
open System.Windows.Threading

type private WinFormsControl = Aardvark.Application.WinForms.OpenGlRenderControl
type private WinFormsControl = Aardvark.Application.WinForms.ThreadedRenderControl

type OpenGlRenderControl(runtime : Runtime, debug : IDebugConfig, samples : int) as this =
inherit WindowsFormsHost()
Expand All @@ -27,7 +27,6 @@ type OpenGlRenderControl(runtime : Runtime, debug : IDebugConfig, samples : int)
// do ctrl.AutoInvalidate <- false

do this.Child <- ctrl
//ctrl.OnPaintRender <- false
this.Loaded.Add(fun e -> this.Focusable <- false)

//override x.OnDpiChanged(oldDpi : DpiScale, newDpi : DpiScale) =
Expand Down
Loading

0 comments on commit 6c0555d

Please sign in to comment.