Cockatrice/cockatrice/src/interface
Lukas Brübach 64b3b7e0b4 [PictureLoader] Pace requests and run the throttle timers on the worker thread
Previously the whole backed-up queue was drained in a burst as soon as a
request was enqueued, sending up to 10 requests back-to-back and then
immediately re-filling the quota one second later. That hard-bursts a
rate-limited API like Scryfall's (10 requests/second) into a 30 second
lockout.

Introduce a pacing timer that dispatches a single queue entry every
100 ms, so the per-second allowance is used smoothly instead of in spikes,
and keep the quota timer at 1 second. Also fix both timers' thread
affinity: they are QTimer value members and so are not QObject children,
meaning moveToThread() on the worker left them on the main thread while
the slot code started them from the picture thread, which was a no-op that
also warned. They are moved to the worker thread explicitly and started
lazily from there.
2026-09-12 16:41:14 +02:00
..
card_picture_loader [PictureLoader] Pace requests and run the throttle timers on the worker thread 2026-09-12 16:41:14 +02:00
deck_loader [Client] Expose custom zone management in the deck editor (#7205) 2026-09-05 22:00:21 +02:00
intents [Server/Client/Protocol] Reporting users + moderation queue functionality (#7091) 2026-08-21 15:00:13 +02:00
layouts Run formatter on all our files (#6942) 2026-05-26 15:11:38 -07:00
palette_editor [App] Add onboarding wizard (#7064) 2026-08-24 23:05:58 +02:00
widgets Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
key_signals.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
key_signals.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
logger.cpp style: Add braces to all control flow statements (#6887) 2026-05-16 19:19:53 +02:00
logger.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
pixel_map_generator.cpp [Theme] Add scheme-variant asset resolution (#7275) 2026-09-11 17:59:57 +02:00
pixel_map_generator.h [Theme] Add scheme-variant asset resolution (#7275) 2026-09-11 17:59:57 +02:00
theme_config.cpp [PaletteEditor] Ensure directory is writeable, don't fall back to alternate palette (#7048) 2026-07-27 11:23:41 +02:00
theme_config.h [App/Theme] Palette Editor (#6877) 2026-05-17 10:08:00 +02:00
theme_manager.cpp [Theme] Add scheme-variant asset resolution (#7275) 2026-09-11 17:59:57 +02:00
theme_manager.h [Theme] Add scheme-variant asset resolution (#7275) 2026-09-11 17:59:57 +02:00
window_main.cpp Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
window_main.h [Oracle/Client] Report card database download progress (#7253) 2026-09-09 22:27:16 +02:00