Canvas.dpr 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. Tbird 1.2 GF3 Ti200 5.2 / 227 64 / 756 27 / 408 75 / 208
  13. ----29/09/02 - Added TextOut bench
  14. Tbird 1.2 GF2 Pro 7.1 / 162 92 / 557 40 / 223
  15. Duron 800 TNT2 M64 105.0 / 571 400 / 1148 126 / 676
  16. ----21/01/02 - Initial
  17. }
  18. program Canvas;
  19. uses
  20. Forms,
  21. fCanvas in 'fCanvas.pas' {FormCanvas};
  22. {$R *.res}
  23. begin
  24. Application.Initialize;
  25. Application.CreateForm(TFormCanvas, FormCanvas);
  26. Application.Run;
  27. end.