When I do my collision detection I have to do a nested FOR loop which means it is a loop of 10,000 comparisons when I only have 200 entities on the screen at a time.
If I put each characteristic of each entity into seperate arrays I can directly access them without the need for nested loops.
I am about to start rewriting the whole program.
Has anyone else experienced this?
If I put each characteristic of each entity into seperate arrays I can directly access them without the need for nested loops.
I am about to start rewriting the whole program.
Has anyone else experienced this?