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,5 +1,6 @@
#include "octree.hpp"
#include "config.hpp"
#include "tracy.hpp"
#include "util.hpp"
#include <iostream>
@ -131,7 +132,7 @@ auto Octree::CalculateForce(int node_idx, const Vector3 &pos) const -> Vector3 {
}
const OctreeNode &node = nodes[node_idx];
if (node.mass_total == 0.0f) {
if (std::abs(node.mass_total) <= 0.001f) {
return Vector3Zero();
}