Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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  
  How to fix crap applet frame rate on Mac  (Read 3129 times)
0 Members and 1 Guest are viewing this topic.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Posted 2011-03-01 17:08:42 »

I noticed that my computer at home could run applets fine but my work computer would stutter at 1 or 2 FPS. I finally found the discrepancy.

Go to Applications/Utilities/Java Preferences

Run applets:
Within the browser process

I switched to the other option (in their own process) thinking I'd get better performance and would avoid the occasional entire browser freeze from applets, but it turns out this totally borks everything, so don't do it.

I can now play all the Java 4k games just fine on my Mac. Smiley

See my work:
OTC Software
Offline gwoptics

Senior Newbie


Projects: 1



« Reply #1 - Posted 2011-03-01 17:17:34 »

Well, for me (10.5) this option was selected anyway (and marked 'default') and I still cannot play many of the 4k games.
 Angry
Andreas

http://www.gwoptics.org - news and games about gravitational waves
http://twitter.com/gwoptics
Offline Damocles
« Reply #2 - Posted 2011-03-01 17:56:57 »

Is Mac running the OpenJDK or the normal Sun Java?

Because OpenJDK is crap. It was default on my Linux, and only causes problems.

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

Senior Newbie


Projects: 1



« Reply #3 - Posted 2011-03-01 18:02:20 »

That's what i have:

$ java -version
java version "1.5.0_26"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_26-b03-376-9M3263)
Java HotSpot(TM) Client VM (build 1.5.0_26-156, mixed mode, sharing)

Andreas

http://www.gwoptics.org - news and games about gravitational waves
http://twitter.com/gwoptics
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 81
Projects: 15


★★★★★


« Reply #4 - Posted 2011-03-01 19:27:58 »

Apple totally borked their java plugin2 (out of process) option. This is because they now render everything to an offscreen buffer before drawing it again onto the screen. They do this because they claim it allows html content to overlap the java applet. The changes massively effected performance on all java applets (especially games and cool libraries like PulpCore) and totally broke all opengl java applets (both JOGL and LWJGL).
Offline Hansdampf

Senior Devvie


Projects: 3


too offending?


« Reply #5 - Posted 2011-03-01 20:05:13 »

1  
-Dapple.awt.graphics.UseQuartz=false
brought the performance on (mac && 1.5 java) of my last game back to normal.

lots of sillystupid games: http://www.emaggame.com
Offline woogley
« Reply #6 - Posted 2011-03-01 20:11:22 »

1  
-Dapple.awt.graphics.UseQuartz=false
brought the performance on (mac && 1.5 java) of my last game back to normal.

Thank you. I just put this on the Runtime Parameters options in Java Preferences .. seems to have fixed all the 4k games.
Offline Hansdampf

Senior Devvie


Projects: 3


too offending?


« Reply #7 - Posted 2011-03-01 20:17:03 »

Nice to hear! I spent a lot of time fiddling with the parameters. Finally I gave up because you can't force a normal Mac user to manually change Java settings. (It does not work in Applet tags!). Never touched a Mac since:)

lots of sillystupid games: http://www.emaggame.com
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #8 - Posted 2011-03-01 23:40:35 »

1  
-Dapple.awt.graphics.UseQuartz=false
brought the performance on (mac && 1.5 java) of my last game back to normal.

Thank you. I just put this on the Runtime Parameters options in Java Preferences .. seems to have fixed all the 4k games.
Ah yes, that too. I forgot to mention it.

Amazing that we have to do sleuthing to figure out how to get Java to bloody work. It'll be good when it has fully transitioned out of Apple's hands.

To do this, open Java Preferences, select the runtime(s) you use (in the General Tab), then click Options... and just paste that in.

See my work:
OTC Software
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.

Mr.CodeIt (20 views)
2014-12-23 03:34:11

rwatson462 (52 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (80 views)
2014-12-09 22:41:13

BurntPizza (110 views)
2014-12-08 04:46:31

JscottyBieshaar (78 views)
2014-12-05 12:39:02

SHC (89 views)
2014-12-03 16:27:13

CopyableCougar4 (93 views)
2014-11-29 21:32:03

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

toopeicgaming1999 (148 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!