Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Java2D] slower on macs?  (Read 986 times)
0 Members and 1 Guest are viewing this topic.
Offline orange451

Junior Member


Medals: 1
Projects: 1



« Posted 2012-07-01 19:12:41 »

Java seems to be a lot slower on the mac OS, or at least when I use Java2D with it. Is this normal? or just the computer?
A game I made awhile ago, called Mineblock, ran perfectly on my laptop (with windows). When that computer broke, I continued to develop it on my dads computer, a 27 inch mac desktop[size=6pt][3.3 GHz quad core processor][/size] (with much better hardware than my laptop [size=6pt][2.13 GHz dual core processor][/size]), however the frame rate in it was MUCH slower.
Offline Sickan

Senior Member


Medals: 7



« Reply #1 - Posted 2012-07-01 19:19:39 »

One of the negative parts of Java2D is that you never know what performance you're going to get.

I'm just here to learn.
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #2 - Posted 2012-07-01 19:51:29 »

Java seems to be a lot slower on the mac OS, or at least when I use Java2D with it. Is this normal? or just the computer?
A game I made awhile ago, called Mineblock, ran perfectly on my laptop (with windows). When that computer broke, I continued to develop it on my dads computer, a 27 inch mac desktop (with much better hardware than my laptop), however the frame rate in it was MUCH slower.
As far as I know, applets use some offscreen rendering through a compositing layer in OSX, maybe someone can explain it better. Does your game work faster as an application?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline orange451

Junior Member


Medals: 1
Projects: 1



« Reply #3 - Posted 2012-07-01 19:58:15 »

As far as I know, applets use some offscreen rendering through a compositing layer in OSX, maybe someone can explain it better. Does your game work faster as an application?
It's about the same as both an applet and an application.
Online ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #4 - Posted 2012-07-01 21:35:10 »

Have you tried doing System.setProperty("sun.java2d.opengl","true");?

Offline orange451

Junior Member


Medals: 1
Projects: 1



« Reply #5 - Posted 2012-07-01 22:33:44 »

Have you tried doing System.setProperty("sun.java2d.opengl","true");?
There doesn't seem to be a difference in speed when I do that.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #6 - Posted 2012-07-01 22:54:32 »

Could you please change the topic title to:
   "Java2D seems to be a lot slower on macs?"

That would be a more accurate description of your problem Smiley

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Offline gimbal

JGO Coder


Medals: 15



« Reply #7 - Posted 2012-07-02 13:17:37 »

Also begs the question: is this the old Apple JDK or is it the new Oracle JDK 7 Mac release?

Although the Oracle version seems to have most of the stuff from the old Apple JDK ported over.
Offline orange451

Junior Member


Medals: 1
Projects: 1



« Reply #8 - Posted 2012-07-02 16:27:48 »

Also begs the question: is this the old Apple JDK or is it the new Oracle JDK 7 Mac release?

Although the Oracle version seems to have most of the stuff from the old Apple JDK ported over.
New one. It's also slow with just a plain install of Java (not the jdk).
Offline loom_weaver

JGO Coder


Medals: 16



« Reply #9 - Posted 2012-07-02 21:43:15 »

I would post a reproducer.

In my experience, Java 2D on my MacBook Pro (circa 2010) is acceptably fast.  I can paint approximately 3-4000 small bitmaps at 60 FPS without difficulties.  lwjgl has even better performance but just to give you a ballpark...
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (87 views)
2013-05-16 21:24:48

gouessej (117 views)
2013-05-16 00:53:38

gouessej (112 views)
2013-05-16 00:17:58

theagentd (125 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (178 views)
2013-05-12 15:36:09

UnluckyDevil (185 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.119 seconds with 21 queries.