CanvasD.dpr 939 B

123456789101112131415161718192021222324252627
  1. (* Benchmark for GLCanvas.
  2. This project pits TGLCanvas against TCanvas in direct mode (hardware
  3. acceleration should be available on both sides).
  4. You may usually bet on TGLCanvas being 3 to 5 times faster, but on fast 3D
  5. hardware, or when PenWidth is not 1, the performance ratio can reach 1:100.
  6. However, this is not really an apples-to-apples comparison, because GDI
  7. (or any other software implementations) are useless when it comes to drawing
  8. to an OpenGL buffer, so, this is more to show that GLCanvas is far from
  9. a "decelerator" if you have some 2D stuff to draw on your 3D Scene.
  10. Figures for PenWidth = 1, GLCanvas / GDI
  11. CPU Graphics Board Lines Ellipses Points TextOut
  12. *)
  13. program CanvasD;
  14. uses
  15. Forms,
  16. fCanvasD in 'fCanvasD.pas' {FormCanvas};
  17. {$R *.res}
  18. begin
  19. Application.Initialize;
  20. Application.CreateForm(TFormCanvas, FormCanvas);
  21. Application.Run;
  22. end.