Skip to content
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

DLSS/RR latest model downloads get stuck part way #414

Open
OTSDARVA-02 opened this issue Feb 21, 2025 · 7 comments
Open

DLSS/RR latest model downloads get stuck part way #414

OTSDARVA-02 opened this issue Feb 21, 2025 · 7 comments
Assignees

Comments

@OTSDARVA-02
Copy link

OTSDARVA-02 commented Feb 21, 2025

Simple as title says, whenever I try to download the latest models the download starts but will always stop at the same point just over halfway done. New FG model works fine though. Older DLSS models also work fine. Only seems to effect DLSS 4 models, v310+

Image
Image
Image

I downloaded the pre-release v1.1.6.1 and ran all the tests again, just in case it helps in any way.

DLSS Swapper version: v1.1.6.1

Test 1: Accessing google.com
Test 1: Status code - OK
Test 1: Downloaded 19693 bytes
Test 1: Duration 0.29 seconds

Test 2: Accessing bing.com
Test 2: Status code - OK
Test 2: Downloaded 170963 bytes
Test 2: Duration 0.31 seconds

Test 3: Downloading from DLSS Swapper DLL file server (https://dlss-swapper-downloads.beeradmoore.com/dlss/nvngx_dlss_v1.0.0.0.zip)
Test 3: Status code - OK
Test 3: Downloaded 3914167 bytes
Test 3: Duration 3.66 seconds

Test 4: Downloading from DLSS Swapper DLL file server in a web browser (https://dlss-swapper-downloads.beeradmoore.com/dlss/nvngx_dlss_v1.0.0.0.zip)
Test 4: User reported it downloaded correctly

Test 5: Downloading game cover from Steam (https://steamcdn-a.akamaihd.net/steam/apps/870780/library_600x900_2x.jpg)
Test 5: Status code - OK
Test 5: Downloaded 113151 bytes
Test 5: Duration 0.12 seconds

Test 6: Downloading game cover from Epic Game Store (https://cdn1.epicgames.com/item/calluna/Control_Portrait_Storefront_1200X1600_1200x1600-456c920cae7a0aa9b36670cd5e1237a1?w=600&h=900&resize=1)
Test 6: Status code - OK
Test 6: Downloaded 145982 bytes
Test 6: Duration 0.15 seconds

Test 7: Downloading game cover from DLSS Swapper file server (https://dlss-swapper-downloads.beeradmoore.com/test/library_600x900_2x.jpg)
Test 7: Failed, The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing.
Test 7: Duration 20.01 seconds

Test 8: Downloading game cover from alternative DLSS Swapper file server (https://files.beeradmoore.com/dlss-swapper/test/library_600x900_2x.jpg)
Test 8: Status code - OK
Test 8: Downloaded 113151 bytes
Test 8: Duration 1.59 seconds

Test 9: DNS lookup of DLSS Swapper file server (dlss-swapper-downloads.beeradmoore.com)
Test 9: Found IP address 2606:4700:3030::6815:7001
Test 9: Found IP address 2606:4700:3030::6815:3001
Test 9: Found IP address 2606:4700:3030::6815:6001
Test 9: Found IP address 2606:4700:3030::6815:2001
Test 9: Found IP address 2606:4700:3030::6815:1001
Test 9: Found IP address 2606:4700:3030::6815:4001
Test 9: Found IP address 2606:4700:3030::6815:5001
Test 9: Found IP address 104.21.64.1
Test 9: Found IP address 104.21.96.1
Test 9: Found IP address 104.21.80.1
Test 9: Found IP address 104.21.48.1
Test 9: Found IP address 104.21.112.1
Test 9: Found IP address 104.21.16.1
Test 9: Found IP address 104.21.32.1
Test 9: Duration 0.03 seconds

Test 10: Downloading from DLSS Swapper DLL file server with custom user agent (https://dlss-swapper-downloads.beeradmoore.com/dlss/nvngx_dlss_v1.0.0.0.zip)
Test 10: Testing with User-Agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0"
Test 10: Status code - OK
Test 10: Downloaded 3914167 bytes
Test 10: Duration 3.52 seconds
@OTSDARVA-02
Copy link
Author

Seeing as the import function is broken, is there a way to get the app to recognise Zip folders I put in the appdata>local diractory?

@beeradmoore
Copy link
Owner

Is the time it takes from when it starts downloading to when it stops 20 seconds, can you measure it to see if it is that?

Some of the other DLSS models are much larger (clicking on them in the library will show you). The test uses DLSS v1.0 which is 3.9MB and you did that in 3.6 seconds. DLSS 4 (v310.2.1) is about 35MB, rounding up lets say it is 39MB or 10x the size. At the same rate it would now take 36 seconds to download.

New DLSS FG model is only 3.7MB, so smaller than the test.

Circling back to 20 seconds I mentioned above, I set the DLSS Swapper timeout to 20 seconds down from the default of 100 seconds. I lowered it so people would get the "can't connect to server" error sooner. I was under the impression that "Timeout" is the time it will abort if it does not receive any data, but this looks like it could be from start to end.

I'll see if I can throttle my connection and see how to handle that better.

As for import, known issue, being worked on.

As for faking import, I looked at the source code and it looks like you can do it.

(This is an explanation of what and why, if you want to skip to doing it is lower)

So to know if DLSS v310.2.1 exists on my machine (for an app installed with installer) the path it checks for a file is C:\Users\brads\AppData\Local\DLSS Swapper\dlss_zip\310.2.1.0_3A875F45C315D09E5F4548CC9288F178.zip. That path is %LOCALAPPDATA%\DLSS Swapper\dlss_zip\ if you wanted to get to it yourself. If you are using portable it is wherever the files are\StoredData\dlss_zip\.

dlss_zip will be different things for DLSS FG, DLSS RR, XeSS, etc. This folder is an example for just DLSS SR.

3A875F45C315D09E5F4548CC9288F178 is the hash of the file inside the file.

If you go to the manifest.json and find the file you want (lets say DLSS v310.2.1)
It's download_url is https://dlss-swapper-downloads.beeradmoore.com/dlss/nvngx_dlss_v310.2.1.0.zip, so download this file in your browser
It's md5_hash is 3A875F45C315D09E5F4548CC9288F178
Rename the zip to {version}_{md5_hash}.zip (so in this case 310.2.1.0_3A875F45C315D09E5F4548CC9288F178.zip
Move this file into the dlss_zip folder path mentioned above.
Reload DLSS Swapper and it should pick it up.

@beeradmoore beeradmoore self-assigned this Feb 21, 2025
@beeradmoore
Copy link
Owner

Thanks for the idea on a workaround for now, I have made a more detailed guide here while I try fix the networking.

@OTSDARVA-02
Copy link
Author

OTSDARVA-02 commented Feb 22, 2025

I tried again this morning, first download stalled after 10 seconds weirdly, but I tried a few more times after and it was then around 20 seconds each time from then on. My internet is from the dark ages unfortunately, seems it finally bit me in the ass haha. Thanks for getting back to me, I'll see if I can manually install them for now.

Update: Can't download new DLLS from the manifest either, gets stuck in the same time frame, however it did let me continue the download after it initially fails so I was able to complete download, albeit in a scuffed way

@beeradmoore
Copy link
Owner

Using a download manager like Motrix may help.

Are you able to do a speed test and share the results so we can see what we're dealing with? (The share link, one that one put your IP here)

I was trying to throttle network to see if 20sec was for total download. Making it 1mbps I was able to get the file on 32sec so the timeout is between data packets. However limiting my speed is one thing, I think you may be also getting dropped packets and high ping. I'll keep seeing if I can replicate that somehow

@OTSDARVA-02
Copy link
Author

https://www.speedtest.net/result/17413251826.png
Yeah like I said, from the dark ages haha. Speed is super low but my ping has always been solid.

@beeradmoore
Copy link
Owner

If anything the speed limit I did was slower. The ping isn't horrible. It is odd that the download would just stop.
I'll see if I can add extra logging around that as well as have a secondary mirror to see if that helps. Because it could be a Cloudflare problem and not your connection problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants