perf(gui): Resolve massive frametime bloat by throttling telemetry and optimizing UI updates

This commit is contained in:
2026-02-23 15:28:51 -05:00
parent 0535e436d5
commit b415e4ec19
10 changed files with 152 additions and 23 deletions

18
reproduce_delay.py Normal file
View File

@@ -0,0 +1,18 @@
import time
from ai_client import get_gemini_cache_stats
def reproduce_delay():
print("Starting reproduction of Gemini cache list delay...")
start_time = time.time()
try:
stats = get_gemini_cache_stats()
elapsed = (time.time() - start_time) * 1000.0
print(f"get_gemini_cache_stats() took {elapsed:.2f}ms")
print(f"Stats: {stats}")
except Exception as e:
print(f"Error calling get_gemini_cache_stats: {e}")
print("Note: This might fail if no valid credentials.toml exists or API key is invalid.")
if __name__ == "__main__":
reproduce_delay()