Ignore:
Timestamp:
Nov 22, 2012, 2:45:14 PM (12 years ago)
Author:
chronos
Message:
  • Added: Column which show real FPS calculated using frames counter and elapsed time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/UMainForm.pas

    r447 r448  
    130130      StepStartTime := NowPrecise;
    131131      DrawFrameTiming(TFastBitmap(Scenes[SceneIndex]));
    132       SceneIndex := (SceneIndex + 1) mod Scenes.Count;
    133132      Application.ProcessMessages;
    134133      StepDuration := NowPrecise - StepStartTime;
     134      SceneIndex := (SceneIndex + 1) mod Scenes.Count;
     135      Inc(FrameCounter);
    135136    until TestTerminated or
    136137      ((TestTimeout > 0) and ((NowPrecise - StartTime) > OneSecond * TestTimeout));
     
    221222  with TDrawMethod(DrawMethods[Item.Index]) do begin
    222223    Item.Caption := Caption;
     224    Item.SubItems.Add(FloatToStr(RoundTo(FPS, -3)));
    223225    Item.SubItems.Add(FloatToStr(RoundTo(FrameDuration / OneMillisecond, -3)));
    224226    if FrameDuration > 0 then
Note: See TracChangeset for help on using the changeset viewer.