From 9b1f6ee0a1dab34e999ac9fb31160c37f0fbe340 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 15 Mar 2026 04:21:54 +0200 Subject: [PATCH] refactor(examples): rename FillRateTest to GraphicsBenchmark Rename the fill-rate test class to GraphicsBenchmark for better clarity about its purpose as a general graphics performance benchmark. --- .../{FillRateTest.java => GraphicsBenchmark.java} | 10 +++++----- .../e3d/examples/launcher/ApplicationListPanel.java | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) rename src/main/java/eu/svjatoslav/sixth/e3d/examples/{FillRateTest.java => GraphicsBenchmark.java} (97%) diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/FillRateTest.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphicsBenchmark.java similarity index 97% rename from src/main/java/eu/svjatoslav/sixth/e3d/examples/FillRateTest.java rename to src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphicsBenchmark.java index 74f415b..a861c4b 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/FillRateTest.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/GraphicsBenchmark.java @@ -39,7 +39,7 @@ import java.util.Random; * @see SolidPolygonCube * @see TexturedPolygon */ -public class FillRateTest extends WorldNavigationUserInputTracker implements FrameListener { +public class GraphicsBenchmark extends WorldNavigationUserInputTracker implements FrameListener { /** Number of cubes along each axis of the grid. */ private static final int GRID_SIZE = 16; @@ -83,18 +83,18 @@ public class FillRateTest extends WorldNavigationUserInputTracker implements Fra } /** - * Entry point for the fill-rate test demo. + * Entry point for the graphics benchmark demo. * @param args command line arguments (ignored) */ public static void main(String[] args) { - new FillRateTest(); + new GraphicsBenchmark(); } /** - * Constructs the fill-rate test demo with a 1920x1080 window. + * Constructs the graphics benchmark demo with a 1920x1080 window. * Creates the cube grid and initializes camera orbit animation. */ - public FillRateTest() { + public GraphicsBenchmark() { viewFrame = new ViewFrame(1920, 1080); viewPanel = viewFrame.getViewPanel(); viewPanel.setFrameRate(0); diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/ApplicationListPanel.java b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/ApplicationListPanel.java index 424406d..64689e0 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/ApplicationListPanel.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/ApplicationListPanel.java @@ -34,7 +34,7 @@ class ApplicationListPanel extends JPanel { sequentialGroup.addComponent(new JButton(new ShowGameOfLife())); sequentialGroup.addComponent(new JButton(new ShowRandomPolygons())); sequentialGroup.addComponent(new JButton(new ShowShadedShapes())); - sequentialGroup.addComponent(new JButton(new ShowFillRateTest())); + sequentialGroup.addComponent(new JButton(new ShowGraphicsBenchmark())); } /** Action to launch the TextEditorDemo. */ @@ -146,15 +146,15 @@ class ApplicationListPanel extends JPanel { } } - /** Action to launch the FillRateTest benchmark. */ - private static class ShowFillRateTest extends AbstractAction { - ShowFillRateTest() { - putValue(NAME, "Fill-rate Test"); + /** Action to launch the GraphicsBenchmark. */ + private static class ShowGraphicsBenchmark extends AbstractAction { + ShowGraphicsBenchmark() { + putValue(NAME, "Graphics Benchmark"); } @Override public void actionPerformed(final ActionEvent e) { - FillRateTest.main(null); + GraphicsBenchmark.main(null); } } -- 2.20.1