From e8122b50fb44669b162743d4b372b33e9028bf7d Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Tue, 18 Nov 2014 12:46:18 +0100 Subject: [PATCH] disable one expensive anti aliasing option. look is still good, performance++ --- src/de/teamteamteam/spacescooter/GameFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/teamteamteam/spacescooter/GameFrame.java b/src/de/teamteamteam/spacescooter/GameFrame.java index b2b16d6..55a3d49 100644 --- a/src/de/teamteamteam/spacescooter/GameFrame.java +++ b/src/de/teamteamteam/spacescooter/GameFrame.java @@ -156,9 +156,10 @@ public class GameFrame extends JFrame { /** * Apply rendering hints to the given Graphics2D. + * KEY_ANTIALIASING is very expensive and doesn't do much more over KEY_TEXT_ANTIALIASING */ private void applyRenderingHints(Graphics2D bufferedGraphics) { - bufferedGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); + //bufferedGraphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); bufferedGraphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); }