Mac performance regression

Started by mot, June 02, 2010, 00:45:53

Previous topic - Next topic

mot

I have encountered a strange performance regression in the Mac build of my game.

I get very low FPS (~15) on Mac OS X whereas the Windows version runs at 60 FPS (capped) with virtually no CPU usage.

Same machine. OSX is 10.6 64bit, Java 1.6 u20. Windows 7 64 bit, Java 1.6 u20. Intel GMA950.

ATM using four 2048x2048 textures and ~ 1000 sprites with about 15 glBindTexture calls per frame (down from about 80 with almost no improvement). Framerate goes down quickly with each additional quad that is being rendered, dimensions don't seem to matter. Puppygames' stuff runs fine. My older game Devastro runs fine as well ( rendering code is different but not all that much..) I'm baffled.

Before I set up TPTP to profile, does anyone have any clues?

I don't have any other Mac to test on and compare. Anyone here with a NVIDIA/ATI equipped Mac?

Thanks.

kappa


mot

Weird. I was going to try the Dock reflection slowdown and the game ran at 60FPS. Moving the window low enough to be reflected by the Dock indeed caused a significant slowdown but it recovered once I moved it up again into the default position.

Opened Activity monitor to check CPU usage and as soon as the new window popped up over the game view, the framerate fell down again. Even on subsequent runs with no other windows open the game was still slow and never reached the 60FPS again. Disabling the 3D Dock effect didn't help. What the hell?

bobjob

try run the build with -d32 with the vm command line argument. see if it makes a difference.


mot

Quote from: bobjob on June 03, 2010, 15:22:45
try run the build with -d32 with the vm command line argument. see if it makes a difference.

Nope.