JonathanBraverDev / game-of-life

An over-engineered implementation of one of the simplest projects imaginable
0 stars 0 forks source link

cluster detection optimization #1

Closed JonathanBraverDev closed 3 years ago

JonathanBraverDev commented 3 years ago

no outlines on the first frame, crashing during render of second needles to say its unworth of the main branch *I was not working on this for a while and won't focus like before for a while so I just want my code saved here

JonathanBraverDev commented 3 years ago

missing outlines were due to extreme minimal requirements set for outlining

JonathanBraverDev commented 3 years ago

the crash seems to happen in the initial for loop of 'FindCluster'that populated the queue with the first cell's neighbors but not in the first time it's called nor during the initial render, the amount of neighbors seems to be unrelated to the crash.

JonathanBraverDev commented 3 years ago

the problem seems to do with a mismanaged vector in the initialization of 'FindCluster', pushing into an improperly initialized vector inside the queue