AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Desktop Window Manager CPU Auslastung (Win8)

Ein Thema von ich2 · begonnen am 11. Jul 2013 · letzter Beitrag vom 11. Jul 2013
Antwort Antwort
Benutzerbild von ich2
ich2

Registriert seit: 7. Dez 2005
Ort: Würzburg
54 Beiträge
 
#1

Desktop Window Manager CPU Auslastung (Win8)

  Alt 11. Jul 2013, 09:44
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
Wissen ist Macht. Das ändert aber so gut wie nichts an der Übermacht der Dummheit.
  Mit Zitat antworten Zitat
Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.487 Beiträge
 
Delphi 7 Enterprise
 
#2

AW: Desktop Window Manager CPU Auslastung (Win8)

  Alt 11. Jul 2013, 10:18
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 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.
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all

Geändert von Union (11. Jul 2013 um 10:40 Uhr)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:13 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