-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heroic update progress bar shows incorrect percentage which doesnt match with legendary's percentage #4190
Comments
If the bug is confirmed and if it is alright, i would be willing to open a PR to fix this |
I was checking this issue again and traced the percentage calculation was added in PR: #1256 specifically in this commit: 223b915 by @arielj looking at the intent now behind the calculation which is to take in to account already downloaded stuff in case the update is paused/resumed again, I'm confused if this issue would be considered valid. on one hand, the calculation should take into account only the remaining update download size instead of total game size already downloaded, since the percentage is for the update only on the other, this feels misleading as i was assuming the update is 90% done, which is not correct as only a few gbs were downloaded of the 15GB update, but in the context of overall progress it makes sense example of perspective: I am taking rocket league as an example here which i have not updated since ages, and as per legendary logs the update size is 5.5GB when I press update, legendary's percentage bar is 0% meanwhile heroic shows 81% so it is confusing as seeing 81%, one would think the update is 81% downloaded when that is not the case basically the difference in perspective of saying if 81% done is:
|
a contribution to fix this would be welcome :) |
great! i have one question though before I get started:
|
you probably don't have to change much. I'll just do some quick math here: current code: |
oh damn. this is much cleaner! Thanks for the tip. I'll work on this on the weekends if that's alright. would it be possible for you to assign this issue to me? |
Describe the bug
I was updating fortnite and noticed that the progress bar was stuck at 90% since half hour.
I went ahead and inspected the legendary logs and found the percentage to be vastly different from the one shown in ui. (this is shown in my screenshot down below where i paused the update and screenshotted the last entry which corresponds with what is displayed in the ui)
I tried to look into why this could be when other metrics are exactly the same as displayed in logs but different for percentage and found this snippet in the following file:
HeroicGamesLauncher/src/backend/storeManagers/legendary/games.ts
Lines 465 to 473 in 17526ab
this is in function
onInstallOrUpdateOutput
, and from what it appears looking through rest of the code, we are parsing all other metrics such as download speed, eta, disk write speed, downloaded bytes, etc, directly from the logs, but for percentage for some reason it is being calculated in the code only.I am not sure what is wrong with the calculation here, but I do think if we are parsing all other metrics from legendary itself, we should also parse the progress from the log rather than calculating ourselves as the legendary binary would have a better context and calculation for the correct progress, reducing the effort done on heroic side.
Add logs
Steps to reproduce
Expected behavior
the percentage value should match exactly what is outputted from legendary
Screenshots
Heroic Version
Latest Stable
System Information
Additional information
log files which corroborate the same:
2024-12-20T19_41_48-heroic.log
2024-12-20T19_41_48-legendary.log
The text was updated successfully, but these errors were encountered: