Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 02.05.03 14:39 
Hallo,
habe da wieder mal ein problem
mein Timer(den man unter system findet) soll jede 200 MS folgenden code ausführen:
ausblenden Quelltext
1:
2:
  if (Module <> NIL) and  ( FMusic_IsPlaying( Module) = False ) then NewMusik;
  if (Channel > -1) and  ( FSOUND_IsPlaying( Channel) = False) then NewMusik;

aber leider dauert das prüfen der 2 if schleifen anscheidn zu lange nämlich: nacher im spiel habe ich wegen der 2 if schleifen nur noch 30 FP sonst 60 und bevor ich DX9 installiert habe hatte ich noch 70 FPS. woran liegt das ?
der DXTimer wird jede MS ausgeführt.......

_________________
MFG
Michael Springwald, "kann kein englisch...."
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 02.05.03 14:57 
gelöst ist lang am DXinput1 ;)
habe ich entfernt und jetzt geht es prima;)

frage:
wie kann ich in einer case anweinung folgendes schreiben:
if Key = 'F' then?

_________________
MFG
Michael Springwald, "kann kein englisch...."
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 02.05.03 14:58 
problem doch nicht gelöst;)
das mit der case anweinsung habe ich hinbekommen;)

_________________
MFG
Michael Springwald, "kann kein englisch...."