This is my first big project with Away3D, so I'm still learning the
ropes. I'm hoping there's some small detail I'm missing that is making
my program ignore the fact that it can use the GPU.
Here's a link to the game:
http://positlabs.com/files/code/crossBaller/bin/index.html
Controls:
WASD to move
SPACE to shoot
CLICK AND DRAG to look around
There's nothing super complex going on here, but the game makes my CPU
usage jump to 90-100%, and the framerate is terrible.
I compared it to the CPU usage when I run the shallow water simulation
(
http://infiniteturtles.co.uk/projects/away3d/broomstick/ShallowWaterDemo.html
), and it's a huge difference. When i run the sim, my CPU hovers
around 30%.
I tried disabling the physics engine, removing the fence, removing the
environment sphere...and nothing makes a difference.
I've uploaded the source here:
http://positlabs.com/files/code/crossBaller/src/
And it's available for download as a rar:
http://positlabs.com/files/code/crossBaller/CrossBaller.rar
And if my computer is on when you play the game, you can get some
friends in on the action ( type login.yourUserName in the chat box to
connect to the server )...but the game is super slow, and not
finished.
If you're interested in learning how to set up a multiplayer
game(
http://www.smartfoxserver.com/), feel free to use my code.