Skip to content

feat: GET MODS shows the download's speed and time left - #1664

Closed
zabka14 wants to merge 1 commit into
OpenReliant:mainfrom
zabka14:feat/download-speed
Closed

zabka14 wants to merge 1 commit into
OpenReliant:mainfrom
zabka14:feat/download-speed

Conversation

@zabka14

@zabka14 zabka14 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

During a download, two lines under the GET MODS panel, above the buttons, show how much has arrived of the archive's size (64.3 MB OF 153.7 MB), then the speed over the last 3 seconds and the time left at that speed (6.1 MB/S, 2 MIN LEFT). The speed shows once the download has run for a second. The log gives the average speed of each install, so a player who finds downloads slow can compare it with their browser's.

  • web.Download's watch loop, which already checked the limits every 100 ms, now also records the time since the start and the recent speed in web.Progress (SpeedMeter). Progress.secondsLeft gives the time left.
  • catalogue.Install.transfer gives the whole progress in place of fraction.
  • The lines sit outside the panel so that they never cover the mod's details. A comptime check keeps them above the buttons.

Downloads aren't faster: they already ran as fast as curl on the same files (see the issue).

Closes #1663

A player reported that downloads from GET MODS felt slower than from the
mods website. Both read the same GitHub release files, and the game reads
them as fast as curl, so the speed is now shown to make such reports
measurable: under the panel, how much has arrived, then the speed over the
last 3 seconds and the time left. The log gives the average speed of each
install.
@zabka14

zabka14 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Merge order: #1666 should be merged first. Both change mod_catalogue.zig. Once #1666 is merged, this pull request will be rebased on it, with the download's speed lines drawn at full size under the panel, as the buttons are, rather than with the frames' smaller contents.

@zabka14

zabka14 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Closing for now: this builds on #1666, so I'll reopen it, rebased, once #1666 is merged.

@zabka14 zabka14 closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GET MODS: show the download's speed and time left

1 participant