Cockatrice/cockatrice/src
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
..
client Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
database/interface [Settings] Split cache_settings monolith into multiple SettingsManager sub-classes (#7050) 2026-07-27 11:25:39 +02:00
filters Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
game [Game] Preserve hand card order when restoring connection (#7266) 2026-09-07 08:21:44 +02:00
game_graphics Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
interface [PictureLoader] Pace requests and run the throttle timers on the worker thread 2026-09-12 16:41:14 +02:00
main.cpp Migrate theme asset loads to scheme-variant resolution (#7209-2) (#7276) 2026-09-11 17:59:57 +02:00
main.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
single_instance_manager.cpp Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00
single_instance_manager.h Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00