This past week I’ve been working (with what little time I have) on improving a little game I came up with. I was having a little problem with collision detection though, it was pretty inefficient and would on occasion slaughter the frame rate. I knew I needed to come up with a new algorithm and after several days of hair-ripping and confusion I was able to at least octuple(?) performance in the worst case scenarios. Part of the fun (and sometimes stress) of programming is trying to find better solutions to things, and it’s always great to see the results working.
In my case, it makes things flow very nicely now, although with my solution I did have to make some concessions. But now I can move on with the rest of the game, since performance was my main worry last week.