LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on September 14, 2006, 01:02:59

Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 14, 2006, 01:02:59
I've been testing my game on as many platforms as I can get my hands on... and it seems to run great on all of them but the PPC platforms. On Intel Macs, Windows and Linux PCs I get well over 100fps (on the oldest hardware I could find that still had a 3D card, I got as low as 70fps). But on PPC Macs, it doesn't ever go above 30fps. I've tested it on a Quad G4 with a 6600GT, and a Powerbook G4 (with an ATI 9700), and both are stuck around 30fps, no matter what resolution or graphics settings I specify (e.g., 800x600 gives the same number of FPS as 1280x1024). Any ideas? Could it be a bug with LWJGL, or maybe just an issue with the universal binaries?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: numberR on September 14, 2006, 05:36:22
Intel Mac OS X can run PPC binary, but PPC Mac OS X cannot run Intel binary.
so as long as your game is running on PPC Mac OS X, it is always running as native.

i get more than 30fps for my game on Mac mini G4.
maybe using OpenGL extensions that is really slow on PPC Macs you have tested or something?

or sync methods working not right?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 14, 2006, 14:36:28
I'm using the binaries that were packaged in the 1.0beta2 jar (I'm guessing they're universal, otherwise they wouldn't work at all?).

As for openGL extensions, I'm not using anything out of the "ordinary." I'm even using display lists instead of VBOs.

If anyone has access to a PPC mac, please feel free to test out the game:

//www.tommytwisters.com/spaceops/spaceops.jnlp

While in the beginning menu or the game, press F5 to get the frames per second display.
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: MarneusCalgarXP on September 14, 2006, 20:16:20
Error in the URL, it's rather :

http://www.tommytwisters.com/spaceops/spaceops.jnlp

I haven't a PPC, so I can't tell you wether there's a problem or not...
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 14, 2006, 20:18:41
Oops... sorry. :P

I fixed the URL in the message.

Also, what did you think of the beta?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: tortoise on September 14, 2006, 20:34:35
Quote from: "elias4444"I'm using the binaries that were packaged in the 1.0beta2 jar (I'm guessing they're universal, otherwise they wouldn't work at all?).

Not necessarily.

If they are PPC only, then:
-------
they will work natively on a PPC Mac
they will work via emulation on an Intel Mac, at a cost

If they are Intel only:
--------
they will not run on a PPC mac no matter what
they will run fine on an intel mac

If they are universal:
--------
they will run natively on a PPC mac, using the PPC portion of the binary
they will run natively on an Intel mac, using the Intel portion of the binary



I have a Mac Mini G4 at home, I'll test your game out when I get there.
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: numberR on September 15, 2006, 07:25:33
i only get around 17fps on menu screen... on Mac mini G4.
i get more than 30fps on my simple game,
so i think Mac mini G4 is just not that good system for gaming...
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: MarneusCalgarXP on September 15, 2006, 09:14:38
Quote from: "elias4444"Oops... sorry. :P

I fixed the URL in the message.

Also, what did you think of the beta?

The game runs perfectly on my GeForce 5900 Ultra, AthlonXP64 3800+ (Windows XP pro 32 bits). I was a bit tired (hard day of work :wink:) when I tried it so I can't tell you about the game itself...

I'll give it a try this week end on my laptop (windows xp 32 bits home, Pentium4 3Ghz and Radeon X600M) if you want ! (and I'll tell you what I think about the game  8) )
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 15, 2006, 15:10:10
Feel free to try it out and offer feedback.  :D

I just don't understand why the framerates are so awful even on a quad G4 with a 6600GT.  :(
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: tortoise on September 15, 2006, 23:44:24
Just tried it on my Mac Mini G4 and I'm guessing I was getting about 5fps using the default settings.

I dropped it to 800x600, 16bpp, and no anti aliasing and I'd guess I was getting 30fps (I couldn't find a framerate counter anywhere).

It's a cool looking game, very polished, nice graphics. I thought the controls were a tad sensitive. But all in all, impressive.

How did you map command-q to take you to the title screen on a Mac?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 16, 2006, 02:42:00
Thank you for those very kind compliments. I've been working hard on this game for a while now, and had to learn how to do all the 3D modeling and graphics myself... it was difficult.

I made some minor improvements to the game engine that'll hopefully help on older Macs... please try it again and let me know.

As for the command-q thing... honestly, I don't know. It's just always worked for me. I figured it had something to do with Apple's Java implementation.  :roll:
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: tortoise on September 16, 2006, 05:12:30
I didn't notice any real difference in the framerate with the new version.
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: oNyx on September 17, 2006, 01:41:44
Are you using nanoTime instead of lwjgl's (more robust) timer? (It leaps here.)
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: MarneusCalgarXP on September 17, 2006, 18:46:49
I tested it on my laptop, and it runs smoothly to !
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 18, 2006, 04:23:07
I am using nanotime actually. Is the LWJGL timer really better?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: Matzon on September 18, 2006, 05:42:14
it has a lower resolution (1 ms), however it is stable and doesn't leap like most of the other timers around, like nanoTime. This is on windows tho.
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 18, 2006, 15:58:49
Ok, I've switched back to using the lwjgl timer (it was easy, as I used it originally). Please keep testing away and let me know what you see.
Title: Cool game.
Post by: ndhb on September 19, 2006, 18:30:03
Hiya. I tried running your game, runs smooth (Windows x64)

Here's a few things I noticed:

1) Should always provide a 'back' or 'exit' opportunity on GUI. On screens Host and Join there's no obvious way of 'changing your mind' and going back to the Menu. Also on Map Select screen.

2) Would be helpful with on mouse over help text (popup help) or a text area with helpful clues. "What is does the E, R, H, S, A, T values represent?". We cant expect people to read a manual to play a game (although I assume it would answer these sorts of questions).

3) It's sometimes a bit difficult to know, what items on the screen you can interact with. Maybe you could change the cursor (or change colour) when hoovering over something "clickable"? Trial and error works but it's better to assure your players they havn't missed some opportunity in the GUI (because they didnt tried clicking at that pixel to see if something happened).

4) Perhaps consider to support mouse wheel in those menus that scrolls and those widgets that take on a set of values? (eg. Map Select and Time Limit)?

5) Credits screen doesnt activate.

6) In game background image is a bit dull perhaps. More stars and effects? :)

7) Self-destruct is cool but please dont make the default key E (close to navigation keys) :)

8) Cloaking effect is cool but personally I think the "cloaked ship" should be a bit more visible. At least to the player controlling the ship.

9) I found it a bit hard to steer around, it does slide an awful lot but then again I was never a huge asteroids junkie. Would be nice with a "easy-control" setting for children and people like me!

10) In game menu says "Return to game" and "Quit". I would change "Quit" to "Quit to menu" or similar. I just wanted to change map, I didn't want to quit the game (that's what I thought would happend when I clicked "Quit").

Otherwise it's very impressive. I didnt encounter any bugs in 20 mins. Mostly just user-interface annoyances! Keep it up!
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 20, 2006, 16:29:24
That is some fantastic feedback, thank you. It's nice to know that you listed several things already on my "to-do" list.  :D
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 29, 2006, 21:11:06
I've implemented a bunch of everyone's feedback, as well as reducing poly counts and increasing cpu usage to get higher frame rates on older hardware. If you'd all be so kind to try it out again, I'd appreciate it:

//www.tommytwisters.com/spaceops/spaceops.jnlp
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: Matzon on September 29, 2006, 21:46:02
While starting a hosted game I got:
Quoteorg.lwjgl.openal.OpenALException: OpenAL error: Invalid Name (40961)
   at org.lwjgl.openal.Util.checkALError(Util.java:56)
   at org.lwjgl.openal.AL10.alSource3f(AL10.java:797)
   at tools.SoundScape.setSoundPosition(SoundScape.java:232)
   at mpgame.MPGame.loadStuff(MPGame.java:430)
   at mpgame.MPGame.begin(MPGame.java:314)
   at mainmenu.MainMenu.begin(MainMenu.java:917)
   at mainmenu.MainMenu.findserver(MainMenu.java:2649)
   at mainmenu.MainMenu.begin(MainMenu.java:904)
   at mainmenu.MainMenu.askControls(MainMenu.java:1362)
   at mainmenu.MainMenu.begin(MainMenu.java:906)
   at mainmenu.MainMenu.askVolumes(MainMenu.java:1529)
   at mainmenu.MainMenu.begin(MainMenu.java:908)
   at mainmenu.MainMenu.splashscreen(MainMenu.java:656)
   at mainmenu.MainMenu.main(MainMenu.java:3261)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 29, 2006, 22:18:27
What system are you running on? I can't seem to reproduce the error on my own systems.  :?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: ndhb on September 29, 2006, 22:43:47
I also tried it and had no issues with exceptions. Decided to try out Multiplayer features.

1) My friend couldnt join a game hosted on the same LAN. The game silently went back to main menu.

2) After having hosted a multiplayer game I tried starting a single player with "Local Only - No Network". Game responded "Could not connect to 127.0.0.1". It worked if I hosted on my normal IP (192.168.1.10).
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 29, 2006, 23:38:32
ndhb, try turning off any firewall that might be running on the machine running the server and/or the client.

Also, what kind of machine/os are you running it on?
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 30, 2006, 17:42:52
Matzon, I did discover an openAL bug that could occur in some rare instances. I think I got it fixed. If you could please try it again, I'd appreciate it. Thanks!
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: Matzon on September 30, 2006, 19:13:08
Quote from: "elias4444"Matzon, I did discover an openAL bug that could occur in some rare instances. I think I got it fixed. If you could please try it again, I'd appreciate it. Thanks!
sorry - still there. Cleared cache and got this:
QuoteReading map files from: C:\Program Files\Mozilla Firefox/maps/
There is no such directory!
Server started on /127.0.0.1:27995
<Sat Sep 30 21:12:05 CEST 2006> ***Server Initialized***
CLIENT - Connecting to 127.0.0.1
Player Preferred Name: Player
<Sat Sep 30 21:12:06 CEST 2006> Client found! Assigned Player#0
<Sat Sep 30 21:12:06 CEST 2006> Player #0 connecting from: /127.0.0.1
<Sat Sep 30 21:12:06 CEST 2006> Sending creation packet for player #0 placed on team 0
<Sat Sep 30 21:12:06 CEST 2006> Welcome message sent
Attempting to load: mpgame/sounds/explosion.ogg
Attempting to load: mpgame/sounds/flagcapture.ogg
Attempting to load: mpgame/sounds/alarm.ogg
Attempting to load: mpgame/sounds/flagreturn.ogg
Attempting to load: mpgame/sounds/powerdown.ogg
Attempting to load: mpgame/sounds/powerup.ogg
Attempting to load: mpgame/sounds/enginerobot.ogg
Attempting to load: mpgame/sounds/enginemartian.ogg
Attempting to load: mpgame/sounds/tunnellaunch.ogg
Attempting to load: mpgame/sounds/tunnelstop.ogg
Attempting to load: mpgame/sounds/proj1.ogg
Attempting to load: mpgame/sounds/proj2.ogg
Attempting to load: mpgame/sounds/proj3.ogg
Attempting to load: mpgame/sounds/proj4.ogg
Attempting to load: mainmenu/sounds/mouseclick.ogg
#### Java Web Start Error:
#### OpenAL error: Invalid Name (40961)
Quoteorg.lwjgl.openal.OpenALException: OpenAL error: Invalid Name (40961)
   at org.lwjgl.openal.Util.checkALError(Util.java:56)
   at org.lwjgl.openal.AL10.alSource3f(AL10.java:797)
   at tools.SoundScape.setSoundPosition(SoundScape.java:232)
   at mpgame.MPGame.loadStuff(MPGame.java:432)
   at mpgame.MPGame.begin(MPGame.java:316)
   at mainmenu.MainMenu.begin(MainMenu.java:919)
   at mainmenu.MainMenu.splashscreen(MainMenu.java:652)
   at mainmenu.MainMenu.main(MainMenu.java:3263)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 30, 2006, 20:28:08
Matzon, what system are you on? And what kind of soundcard do you have? I've check that error, and just can't find anything wrong in the code (so far as I can tell anyway). Could it be a driver thing?

Edit:  Ok... I've tried one more thing. If this doesn't do it, I don't know what will. I'll have to rewrite my whole sound system or something.

Please let me know as soon as you can (only because weekends are my chance to fix things). Thanks!
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: Matzon on September 30, 2006, 22:27:52
works!
like the game, but the sloooooow turning and direction change is ... annoying
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on September 30, 2006, 22:29:56
Try the arcade mode. :)
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on October 08, 2006, 00:07:45
I know, I'm probably flogging a dead horse here... but... if all of you (especially Matzon) would be willing to try the game again, I'd appreciate it. I've revamped a large chunk of the sound engine (to hopefully prevent future issues from arising), and would like to make sure it all works fine.

Thanks!
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: thygrrrr on October 08, 2006, 00:35:47
Nice game!

Game runs very smooth on my midrange linux box.

The lower quarter of the screen is corrupted in 800x600 windowed mode with 4xAA/32bpp (no background drawn/hall of mirrors?)... sometimes the sound has static and the games fps drop by 50% for a few seconds.

Notably, I do have problems with my lwjgl setup on linux. :)
Title: Does 1.0 Beta 2 have slow down issues on PPC Macs?
Post by: elias4444 on October 08, 2006, 02:21:41
Thanks!

I think the sudden frame drop might be the Java garbage collector doing something. I have no idea how to turn that off unfortunately. I try to be really good about creating objects and disposing of them in order to keep the clutter down though.