BeamMP / BeamMP-Launcher

Official BeamMP Launcher
https://beammp.com
34 stars 42 forks source link

Refactor downloading #116

Closed lionkor closed 2 months ago

lionkor commented 2 months ago

The way it was done was so horrid, it was not only impossible to debug, with TODO comments saying it sucks, and other shit like that, but it was also just full of data races. You can rest easy however - I left most of the data races in there <3 For nostalgia (totally not because it's a massive pain to fix that).

We now do single-threaded download, which can not only saturate my 100 Mbit/s line without any hickups, it can also go up to ~600000 Mbit/s for localhost transfers :) So I think it's fine.

lionkor commented 2 months ago

I'm so tired of this codebase, I'll just ram this in there without review, and then get ready for an EA release.