MegaglassD.dpr 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. {: A variation of the magacube bench for testing sorting.
  2. The cubes in this sample are transparent, and as such need to be depth-sorted
  3. to render correctly, this uses an alternate sorting code which this benchmark
  4. helps testing. The sorting mode is osRenderBlended last, which isn't the most
  5. efficient for that particular case (as a matter of fact, this bench is a worst
  6. case situation for osRenderBlendedLast), osRenderFarthestFirst would be more
  7. suited since all the objets must be sorted (osRenderBlendedLast attempts
  8. ta take advantange of the fact that only a fraction of the objects must be
  9. depth-sorted, which is a disadvantage if most of them must be sorted).
  10. Results :
  11. Size Triangles FPS CPU OpenGL ColorDepth
  12. 5 15972 90.0 K7-1145 GF2 Pro 32Bits (vs 139.3 for megacube)
  13. 5 15972 27.6 Du-800 TNT2 M64 32Bits
  14. --- 26/01/02 --- Sorting optims, XOpenGL change
  15. 5 15972 68.2 K7-1145 GF2 Pro 32Bits (vs 110.4 for megacube)
  16. --- 26/01/02 --- Introduced bench
  17. }
  18. program MegaglassD;
  19. uses
  20. Forms,
  21. fMegaglassD in 'fMegaglassD.pas' {FormMegaglasscube};
  22. {$R *.RES}
  23. begin
  24. Application.Initialize;
  25. Application.CreateForm(TFormMegaglasscube, FormMegaglasscube);
  26. Application.Run;
  27. end.