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

View File

@@ -33,6 +33,14 @@ class HookHandler(BaseHTTPRequestHandler):
self.wfile.write(
json.dumps({'session': {'entries': app.disc_entries}}).
encode('utf-8'))
elif self.path == '/api/performance':
self.send_response(200)
self.send_header('Content-Type', 'application/json')
self.end_headers()
metrics = {}
if hasattr(app, 'perf_monitor'):
metrics = app.perf_monitor.get_metrics()
self.wfile.write(json.dumps({'performance': metrics}).encode('utf-8'))
else:
self.send_response(404)
self.end_headers()