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:
SolidCubesTest- Semi-transparent solid polygon renderingLitSolidCubesTest- Opaque solid polygons with dynamic lightingTexturedCubesTest- Textured polygon renderingWireframeCubesTest- Line renderingStarGridTest- Billboard (glowing point) rendering
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfocusLost(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) booleanfocusReceived(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) booleankeyPressed(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) booleankeyReleased(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) static voidEntry point for the graphics benchmark.booleanonFrame(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame)
-
Constructor Details
-
GraphicsBenchmark
public GraphicsBenchmark()Constructs and runs the graphics benchmark.
-
-
Method Details
-
main
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:
onFramein interfaceeu.svjatoslav.sixth.e3d.gui.FrameListener
-
keyPressed
- Specified by:
keyPressedin interfaceeu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
-
keyReleased
- Specified by:
keyReleasedin interfaceeu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
-
focusLost
public boolean focusLost(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) - Specified by:
focusLostin interfaceeu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
-
focusReceived
public boolean focusReceived(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) - Specified by:
focusReceivedin interfaceeu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
-