Fast multi-window rendering

后端 未结 5 603
执笔经年
执笔经年 2021-02-01 08:03

I\'ve been searching and testing different kinds of rendering libraries for C# days for many weeks now. So far I haven\'t found a single library that works well on multi-windowe

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 08:40

    Speaking of DirectX only here, but I remember we had the same kind of issue once (5 graphics card and 9 screens for a single PC).

    Lot of times full screen switch seems to want to enable vertical sync on monitors, and since Present can't be threaded, the more screens with vertical sync the higher drop you will have (since you will wait between 0 and 16 milliseconds) for each present call.

    Solution we had in our case was to create window as maximised and remove borders, it's not ideal but turned from 10 fps drawing a rectangle back to standard speed (60).

    If you want code sample let me know I'll prepare one.

    Also just for testing I had a go creating 30 windows on my engine using c#/slimdx/dx11, rendering a sphere with basic shading, still well over 40 fps.

提交回复
热议问题