perf(ui): calm large-queue live updates

Throttle visible download snapshots at 500 ms from 250 queue items, align speed visualizations to the same cadence, preserve small-queue responsiveness, and retain the stronger protection for very large queues.
This commit is contained in:
Sucukdeluxe
2026-08-17 13:39:53 +02:00
parent a8a5ca4b40
commit fe3cb36731
7 changed files with 32 additions and 24 deletions
+4
View File
@@ -50,6 +50,10 @@ describe("desktop shell", () => {
expect(getSnapshotRenderDelay(2_470, true, "statistics")).toBe(800);
});
it("renders medium download queues immediately after their calm half-second snapshot", () => {
expect(getSnapshotRenderDelay(661, true, "downloads")).toBe(0);
});
it("keeps application menus mounted for animated opening and closing", () => {
const source = readFileSync(new URL("../src/renderer/App.tsx", import.meta.url), "utf8");
const css = readFileSync(new URL("../src/renderer/styles.css", import.meta.url), "utf8");