JoseTomasTocino / freegemas

Freegemas is an open source version of the well known Bejeweled, built in C++ using SDL2
GNU General Public License v2.0
61 stars 18 forks source link

Fix endless mode high load #7

Closed sharkwouter closed 3 years ago

sharkwouter commented 3 years ago

This fixes #6. Instead of calculating to see if there are solutions on every frame, this now checks if the game is in the state which is set when that is the case.

sharkwouter commented 3 years ago

This might actually be causing a race condition of some sort. I'm seeing crashes on the Vita. I'll convert this to a draft and see if I can find a better solution

sharkwouter commented 3 years ago

I found a different solution which works well. Now the gameboard decides what to do when there are no more moves depending on what game mode is active.