some valgrind bullshit

This commit is contained in:
2026-02-25 13:23:01 +01:00
parent 82d618f692
commit 58235ac52e
7 changed files with 78 additions and 6 deletions

View File

@ -13,9 +13,9 @@
#include <tracy/Tracy.hpp>
#endif
// TODO: Graph interaction
// - Click states to display them in the board
// TODO: Add a move history and backspace to go back
// TODO: Click states to display them in the board
// NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.
auto main(int argc, char *argv[]) -> int {
std::string preset_file;

View File

@ -86,7 +86,9 @@ auto StateManager::NextPath() -> void {
}
auto StateManager::FillGraph() -> void {
#ifdef TRACY
ZoneScoped;
#endif
ClearGraph();
@ -178,7 +180,9 @@ auto StateManager::FindWinningStates() -> void {
}
auto StateManager::FindTargetDistances() -> void {
#ifdef TRACY
ZoneScoped;
#endif
if (springs.size() == 0 || winning_states.size() == 0) {
return;