So I fixed a performance problem that I had

So my bazzite install on my laptop has been slow, but it does have 2 cores. It really can’t handle much, but now I am listening to lofi while writing this.
while, yes of course there are lag spikes here and there, it’s probably because I couldn’t find a hard drive and installed it on a USB drive.

Anyway the fix itself is the network to be limited. My guess is back when this old laptop was used on windows it limited it’s network speed so it could work properly while downloading files. So what I did was run a few commands to limit my network speed.

So the first command I ran was “ifconfig” which lists all of your current network devices.
After I ran that command I ran this: “sudo tc qdisc add dev wlo1 root tbf rate 3 burst 0 latency 70”
REPLACE “wlo1” with the name of YOUR network device, not your internet SSID.
Sadly this does give slow internet speeds, along with high ping but this is all in the name of having better performance on hardware that barely works!
and of course all of that code in the second part is editable.
Also for those that don’t know, one megabyte is equal to four megabits.
3 in the command is the amount you want to limit the upload and download speed. the burst is how much you want it to be able to download and send before getting limited.
The last one is important for people like me, gamers. Latency, its what you want your lowest latency to be.

Anyways, hope this guide helps and bye!