Interface BenchmarkTest

All Known Implementing Classes:
LitSolidCubesTest, SolidCubesTest, StarGridTest, TexturedCubesTest, WireframeCubesTest

public interface BenchmarkTest
Interface for a single benchmark test. Implementations define how to set up and tear down the test scene.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the display name for this benchmark test.
    void
    setup(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes)
    Sets up the test scene by adding shapes to the collection.
    default void
    setViewPanel(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
    Called after setup to provide the view panel for tests that need animation.
    void
    teardown(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes)
    Tears down the test scene by removing all shapes added during setup.
  • Method Details

    • getName

      String getName()
      Returns the display name for this benchmark test.
      Returns:
      the test name
    • setup

      void setup(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes)
      Sets up the test scene by adding shapes to the collection.
      Parameters:
      shapes - the shape collection to populate
    • teardown

      void teardown(eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection shapes)
      Tears down the test scene by removing all shapes added during setup.
      Parameters:
      shapes - the shape collection to clean up
    • setViewPanel

      default void setViewPanel(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
      Called after setup to provide the view panel for tests that need animation. Default implementation does nothing.
      Parameters:
      viewPanel - the view panel