PDA

View Full Version : Speed problems in MadTak (SDL+openGL in C)


Joseph Duchesne
2004.11.04, 09:35 AM
Hi, I'm having trouble with speed.
Here's a shark profile http://madtak.staronesw.com/downloads/Time%20Profile%20of%20MadTak.mshark.sitx

My collision is basically a bounding circle followed by more exact polygon collision, this is quite slow.

[will edit more later]

skyhawk
2004.11.04, 11:02 AM
you are caching cos/sin and sqrt values whenever you can reuse them correct?

Joseph Duchesne
2004.11.04, 11:13 AM
It turns out I wasn't, that and a few other things. The main problem was a > instead of a <, but I did speed the game up a lot. Thanks skyhawk and Aaron (AIM).