Changeset 448 for GraphicTest/UMainForm.pas
- Timestamp:
- Nov 22, 2012, 2:45:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/UMainForm.pas
r447 r448 130 130 StepStartTime := NowPrecise; 131 131 DrawFrameTiming(TFastBitmap(Scenes[SceneIndex])); 132 SceneIndex := (SceneIndex + 1) mod Scenes.Count;133 132 Application.ProcessMessages; 134 133 StepDuration := NowPrecise - StepStartTime; 134 SceneIndex := (SceneIndex + 1) mod Scenes.Count; 135 Inc(FrameCounter); 135 136 until TestTerminated or 136 137 ((TestTimeout > 0) and ((NowPrecise - StartTime) > OneSecond * TestTimeout)); … … 221 222 with TDrawMethod(DrawMethods[Item.Index]) do begin 222 223 Item.Caption := Caption; 224 Item.SubItems.Add(FloatToStr(RoundTo(FPS, -3))); 223 225 Item.SubItems.Add(FloatToStr(RoundTo(FrameDuration / OneMillisecond, -3))); 224 226 if FrameDuration > 0 then
Note:
See TracChangeset
for help on using the changeset viewer.