update compiler flags, fix tracy allocation profiling, fix compiler warnings

This commit is contained in:
2026-02-23 22:25:34 +01:00
parent 59a4303d62
commit 404a76654c
19 changed files with 236 additions and 162 deletions

View File

@ -1,12 +1,15 @@
#include <iostream>
#include <raylib.h>
#include <raymath.h>
#include "config.hpp"
#include "input.hpp"
#include "physics.hpp"
#include "renderer.hpp"
#include "state.hpp"
#include "tracy.hpp"
#include <iostream>
#include <raylib.h>
#include <raymath.h>
#include <tracy/Tracy.hpp>
// #include <tracy/TracyOpenGL.hpp>
#ifdef PRINT_TIMINGS
#include <chrono>
@ -38,6 +41,8 @@ auto main(int argc, char *argv[]) -> int {
SetConfigFlags(FLAG_WINDOW_ALWAYS_RUN);
InitWindow(INITIAL_WIDTH * 2, INITIAL_HEIGHT + MENU_HEIGHT, "MassSprings");
// TracyGpuContext;
// Game setup
OrbitCamera3D camera;
Renderer renderer(camera);
@ -101,7 +106,7 @@ auto main(int argc, char *argv[]) -> int {
renderer.UpdateTextureSizes();
renderer.DrawMassSprings(mass_springs, state.current_state,
state.CurrentGenerator()(), state.winning_states,
state.starting_state, state.winning_states,
state.visited_states);
renderer.DrawKlotski(state.current_state, input.hov_x, input.hov_y,