so I am trying to make 3d game in java. I have made rendering work and now I am thinking about what is the fastest way to remember and check if coordinate has already been calculated?
For example, I have a cube, which has 8 corners, my game calculates each corner 3 times (24 in total) because every corner is being shared with 3 faces.
So, what is the fastest way to store and check if coordinates are already calculated?
Also, I have tried searching for this already but couldn't find results. If there is question like this already answer.
Thank you.