mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
Optimize logging overhead and character animation threading
This commit is contained in:
parent
9d647e5622
commit
85c8b5d5f4
5 changed files with 73 additions and 14 deletions
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue