Hey everyone! I am currently working on a school project where I need to implement 3 algorithms in a 2D game. I now implemented all 3 of them. Grid collision, sort and Graham scan to calculate the Convex hull.
Unfortunately only the grid collision implementation made an significant improvement in performance. The other two only made the performance slower. I am trying to understand why, but am having a hard time figuring this out.
I am not sure if this is the way I can ask for help on this channel, but I would really appreciate some guidance. For anyone wanting to take a look, this is my repo: https://github.com/baspieter/c-optimalisation-project
Or if anyone got any informative sources where I can learn how to make my algorithms run more efficiently, please let me know!