ztellman / penumbra

not under active development - idiomatic opengl bindings for clojure
354 stars 43 forks source link

spaceship gets blasted into ether #34

Closed thirdreplicator closed 12 years ago

thirdreplicator commented 13 years ago

When you change the number of child asteroids to be 10 instead of 4, and after blasting a bunch so that there are loads of asteroids flying all over the place, the spaceship and bullets stop colliding with anything. Just wondering if that's a bug. I didn't read all the code, so it might be built in. Not sure. That was on my Ubuntu box. Hopefully it's not a serious bug.

ztellman commented 13 years ago

What CPU usage are you seeing when you have the asteroids flying around? The collision checks are on a separate thread, and are probably getting squeezed out.

thirdreplicator commented 13 years ago

When that happens,

1 CPU shoots to 100%,

Process name: java Status: Sleeping CPU: 112 Waiting Channel: futex_wait_queue_me