From 1de83fad38874f6668053bfa78388dc0059dc1d6 Mon Sep 17 00:00:00 2001 From: lizzie Date: Fri, 16 Jan 2026 08:46:20 +0000 Subject: [PATCH] extra buffer precautions to not exhaust DMem, format better + perf history nerf --- src/common/fiber.cpp | 3 --- src/core/perf_stats.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index 11b7063ad1..0e7f28c5b9 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -32,9 +32,6 @@ struct Fiber::FiberImpl { boost::context::detail::fcontext_t context{}; boost::context::detail::fcontext_t rewind_context{}; - boost::context::detail::fcontext_t context{}; - boost::context::detail::fcontext_t rewind_context{}; - std::mutex guard; std::function entry_point; std::function rewind_point; diff --git a/src/core/perf_stats.h b/src/core/perf_stats.h index dd6becc02d..92910a959f 100644 --- a/src/core/perf_stats.h +++ b/src/core/perf_stats.h @@ -60,7 +60,11 @@ private: std::size_t current_index{0}; /// Stores an hour of historical frametime data useful for processing and tracking performance /// regressions with code changes. +#ifdef __OPENORBIS__ + std::array perf_history{}; +#else std::array perf_history{}; +#endif /// Point when the cumulative counters were reset Clock::time_point reset_point = Clock::now();