Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

SharpDX Samples - Why is there a performance problem when using WinForms and worse in WPF? #956

Open
@datoml

Description

@datoml

Hello,

Currently I am using a WriteableBitmap to output images from a camera and I need at least 60FPS or more for it. So I wanted to use pure hardware rendering for this task because the WriteableBitmap doesn't perform that well when maximizing the window.

I used the Direct2D example and modified the Render methode to iterate over 5 Full-HD pictures.

When using the Direct2D1DemoApp as Base I am able to achieve 200-250 FPS.

But when I change the Base class to Direct2D1WinFormDemoApp the FPS are stuck at 60FPS.

I also created an example with WPF and used it as an ImageSource but the performance is even worse. A small window is able to achieve 60FPS aswell but when I maximze the window the FPS drops to 30FPS.

Can someone help me why this is happening?
Is WinForms locked to 60FPS or is it bound to the refresh rate of my monitor or something?
Why is WPF performing so bad? Should I use a WinForms Host inside WPF to achieve at least 60FPS?

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions