Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Desktop Window Manager CPU Auslastung (Win8) (https://www.delphipraxis.net/175706-desktop-window-manager-cpu-auslastung-win8.html)

ich2 11. Jul 2013 09:44

Desktop Window Manager CPU Auslastung (Win8)
 
Hallo zusammen...

mir ist gerade ein Problem aufgefallen:
Ich habe ein kleines Programm, bei welchem timergesteuert auf eine Canvasoberfläche gezeichnet wird.
Unter Windows 7 erzeugt mir das eine Auslastung von quasi Null.
Jedoch unter Windows 8 fängt der Desktop Window Manager Dienst (DWM) massiv an zu rödeln. Die Auslastung der *.exe File selbst bleibt gering.

Kompiliert ist das Ganze mit Delphi XE2

Habe auf die schnelle keine Lösung finden können?

Kennt jemand das Problem?

mfg

Union 11. Jul 2013 10:18

AW: Desktop Window Manager CPU Auslastung (Win8)
 
Ja, bei mir geht DWM auf 2-4% bei folgender Routine (5 ms Timerinterval):
Delphi-Quellcode:
procedure TForm1.Timer1Timer(Sender: TObject);
var
  x, y : integer;
  c : TColor;
begin
  x := Random(ClientWidth);
  y := Random(ClientHeight);
  Canvas.MoveTo(x,y);
  x := Random(ClientWidth);
  y := Random(ClientHeight);
  c := Random(High(TColor));
  Canvas.Pen.Color := c;
  Canvas.LineTo(x, y);
end;
Das hier ist wichtig:
Zitat:

Zitat von MSDN
Disabling DWM Composition

Note As of Windows 8, the information in this section is no longer valid. DWM can no longer be programmatically disabled, nor is it disabled when an application attempts to draw to the primary display surface. The following information applies to only Windows 7 and earlier systems.



Alle Zeitangaben in WEZ +1. Es ist jetzt 00:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz