Optimize logging overhead and character animation threading

This commit is contained in:
Kelsi 2026-02-22 06:32:49 -08:00
parent 9d647e5622
commit 85c8b5d5f4
5 changed files with 73 additions and 14 deletions

View file

@ -5,6 +5,7 @@
#include <sstream>
#include <mutex>
#include <fstream>
#include <chrono>
namespace wowee {
namespace core {
@ -73,6 +74,8 @@ private:
std::mutex mutex;
std::ofstream fileStream;
bool fileReady = false;
std::chrono::steady_clock::time_point lastFlushTime_{};
uint32_t flushIntervalMs_ = 250;
void ensureFile();
};