Autor Beitrag
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Sa 26.03.05 15:32 
Hallo,

Ich habe die Erfahrung gemacht, dass die TTimer Komponente nicht wirklich genau ist. Sprich ein 20 ms Interval dauert auf meinem Rechner deutlich länger als auf einem schnellerem Rechner, weil der TTimer ja ein bestimmtes mindestinterval hat.

Was gibts denn noch so für gut Timerkomponenten? Ist der von DelphiX ein Timer mit konstanter Geschwindigkeit?
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 26.03.05 15:39 
Hallo Karlson,

ich denke die Empfehlung richtet sich danach, was du mit dem Timer anstellen möchtest. Wenn es darum geht bei 3D-Spielen die Anzahl der Frames zu berechnen, dann würde ich QueryPerformanceTimer empfehlen.
Ansonsten läuft der DXTimer meiner Meinung nach nicht viel genauer als der normale.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 26.03.05 15:56 
Bei den Jedis ist meiner Meinung nach ein etwas besserer dabei; bin mir diesbezüglich aber nicht 100%ig sicher

AXMD
Karlson Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Sa 26.03.05 16:40 
Hm, wie siehts aus wenn ich einen Thread nehme und dort 20ms Delay reinmache (mit app.processmessages). Ist die geschwindigkeit bei einem Thread auch Prozessorabhänig?
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 26.03.05 16:44 
Der Timer von DelphiX soll aber genauer sein :?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Sa 26.03.05 16:47 
ich würde vorschlagen einen Timer zunehmen (egal welcher) und dann wenn du ganz sicher gehen willst eben per QueryPerformancecounter / GetTickCount immer den _tatsächlichen_ Zeitunterschied berechnen, wenn du den Timern nicht vertraust :)
Karlson Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Sa 26.03.05 20:27 
Okay, ich werds jetzt so machen mit FijiFighter sagte. Leider muss ich dann wieder einen Kompromiss eingehen. Aber was solls.
Danke an alle die geantwortet haben.