From b0704ba35f3bb07f82ff8298d5e26f82bee4a60f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Jan 2026 21:15:59 +0100 Subject: [PATCH] Adjust minimum available context logic. Increase the context quota from 70% to 80%, as the previous value was too conservative with large contexts. Add a minimum bound of 4K to make small context workable. --- profiler/src/profiler/TracyLlm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index ccb73cdb..e17fd2f7 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -881,7 +881,7 @@ void TracyLlm::ManageContext( std::unique_lock& lock ) const auto ctxSize = models[m_modelIdx].contextSize; if( ctxSize <= 0 ) return; - const auto quota = int( ctxSize * 0.7f ); + const auto quota = std::max( 4096, int( ctxSize * 0.8f ) ); if( m_usedCtx < quota ) return; size_t idx = 0;