Class GraphicsBenchmark

java.lang.Object
eu.svjatoslav.sixth.e3d.examples.benchmark.GraphicsBenchmark
All Implemented Interfaces:
eu.svjatoslav.sixth.e3d.gui.FrameListener, eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler

public class GraphicsBenchmark extends Object implements eu.svjatoslav.sixth.e3d.gui.FrameListener, eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
Automated graphics benchmark that tests the engine's rendering performance. Runs multiple tests sequentially, each for a fixed duration, and displays results in a dialog with copy-to-clipboard functionality.

The benchmark creates a 16x16x16 grid of cubes (4096 total) with the camera following a deterministic orbital path. Each test runs for 30 seconds by default.

Press Space to skip to the next test immediately.

Available tests:

  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs and runs the graphics benchmark.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    focusLost(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
     
    boolean
    focusReceived(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
     
    boolean
    keyPressed(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
     
    boolean
    keyReleased(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
     
    static void
    main(String[] args)
    Entry point for the graphics benchmark.
    boolean
    onFrame(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraphicsBenchmark

      public GraphicsBenchmark()
      Constructs and runs the graphics benchmark.
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the graphics benchmark.
      Parameters:
      args - command line arguments (ignored)
    • onFrame

      public boolean onFrame(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame)
      Specified by:
      onFrame in interface eu.svjatoslav.sixth.e3d.gui.FrameListener
    • keyPressed

      public boolean keyPressed(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
      Specified by:
      keyPressed in interface eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
    • keyReleased

      public boolean keyReleased(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
      Specified by:
      keyReleased in interface eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
    • focusLost

      public boolean focusLost(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
      Specified by:
      focusLost in interface eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
    • focusReceived

      public boolean focusReceived(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel)
      Specified by:
      focusReceived in interface eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler