Monday, July 5, 2010

Massive update



Been a while since I posted, I've ported approximately half of what's done in the Java version into c++, and I've got it set up to use either SDL or OpenGL for rendering. Above is a benchmark test when using OpenGL. The SDL version started slowing down at around 600 objects on screen (slower but gradually decreasing frame rate), while the OpenGL version could handle >5000 objects without lagging. Above 5000, you still get 30 fps, but keystrokes can be lost, and sometimes the animation jerks (stops for ~2 seconds, then restarts).

Anyway, next thing I'm gonna code are other objects, then collision detection.



Azriel~