Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (525)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
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 1597 times)
0 Members and 1 Guest are viewing this topic.
Offline orange451

JGO Coder


Medals: 17
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Posted 2012-07-01 17: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.

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Sickan

Senior Devvie


Medals: 9



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

One of the negative parts of Java2D is that you never know what performance you're going to get.
Offline gouessej
« Reply #2 - Posted 2012-07-01 17: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

JGO Coder


Medals: 17
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #3 - Posted 2012-07-01 17: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.

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


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

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

Offline orange451

JGO Coder


Medals: 17
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #5 - Posted 2012-07-01 20: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.

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 833
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #6 - Posted 2012-07-01 20: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
Offline gimbal

JGO Knight


Medals: 25



« Reply #7 - Posted 2012-07-02 11: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

JGO Coder


Medals: 17
Projects: 2
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #8 - Posted 2012-07-02 14: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).

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline loom_weaver

JGO Coder


Medals: 17



« Reply #9 - Posted 2012-07-02 19: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.

 

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

The first screenshot will be displayed as a thumbnail.

toopeicgaming1999 (71 views)
2014-11-26 15:22:04

toopeicgaming1999 (60 views)
2014-11-26 15:20:36

toopeicgaming1999 (14 views)
2014-11-26 15:20:08

SHC (27 views)
2014-11-25 12:00:59

SHC (25 views)
2014-11-25 11:53:45

Norakomi (31 views)
2014-11-25 11:26:43

Gibbo3771 (25 views)
2014-11-24 19:59:16

trollwarrior1 (38 views)
2014-11-22 12:13:56

xFryIx (77 views)
2014-11-13 12:34:49

digdugdiggy (55 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!