What can be done with WPF to break the user interface?

To my disappointment, I found out that one of the applications I'm working on has a bad effect on certain computers. Static graphics and user interface text suffer from a serious tear case without any animations. This makes the text unreadable and, of course, the graphics look bad.

I noticed this problem on different computers, but the one that really made me think was the new Toshiba laptop with the Radeon Mobility graphics card: when this laptop is running on battery power, there are no gaps - but when it starts, there’s a mess around. So this seems like a power noise problem that seems to affect the graphics card - I assume hardware accelerated graphics. However, graphics other than WPF look like you tell users: "This is not my application, this is your power source!" ?!

Have you ever come across this? Still fix it?

The application is .NET 4.0, and Windows 7 runs on the laptop.

+3
source share
3 answers

Acer. , .

Toshiba . - , WPF, .

"", , , WPF . , WPF, ( ).

+2

ATI. NVidia ( ), , .

- . , . . :

(PresentationSource.FromVisual(this) as HwndSource).CompositionTarget.RenderMode = RenderMode.SoftwareOnly;
+2

, , , . , , , . , , ...

regedit DWORD "1", WPF:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

In the past, I found that on low-performance machines (netbooks and integrated graphics machines) this can often significantly improve the performance of WPF applications, as this reduces the memory conflict between the GPU and the CPU.

+1
source

Source: https://habr.com/ru/post/1768078/


All Articles