Media gallery
Buy product
Uses third party DRM. The product author has marked that this product uses a third party DRM service, you might have restricted access to the product source code and/or require additional setup after purchase.
Curator's Featured Review
6/5 Stars. Amazing.
Compressed 14.50 MB of lua files that you have to download upon joining the server to around 1.94 MB (-86.63%)! Thanks Billy, this addon is amazing and works great. You never fail to amaze. <3 Clocked load in time reduction; Before - 2:49 -- After - 0:59
Toaster
In short
โก Reduce server lag, improve load times & get more players with Billy's Lua file CDN! โก
-
Have you ever noticed how unbearably slow Lua file downloads are?
We did too! And that got us thinking... WHY?!
๐ฆ Servers typically have thousands of Lua files
Your average DarkRP server has around 1000 - 5000 Lua files, but this only adds up to just a few megabytes of data. So why does it take so long to download these files?
๐ Sent through the net channel
Lua files are sent through Garry's Mod's networking channel (the same networking channel that is used by addons to communicate server <-> client), keeping your networking thread busy, causing lag & stuttering, especially after a fresh restart when lots of players are joining & downloading Lua files.
๐ง Slow & outdated networking technology
The source engine was designed for internet connections that, at the time, would barely exceed 1 MB/s (if you were lucky!) - Garry's Mod's networking reflects this and is capped at KB/s speeds, causing Lua files to download extremely slowly, despite the fast connections of our modern age.
๐ค Limited to 64 KB chunks
Each packet of Lua files sent to a connecting player can only be up to 64 KB in size. Most servers will have megabytes of Lua files to send, and each one of these 64 KB chunks has to be sent one-by-one as a net message, capped at very slow & archaic KB/s speeds.
Lua file downloads lag your server, and drive new players away.
There's quite a lot of secret technical sauce here, so here's a summarized list:
1. When the server boots, it will pack up as many clientside/shared Lua files it can into a single .BSP (map) file.
2. The server will upload this file to the gluapack CDN (content delivery network).
3. The server will set sv_downloadurl to a URL that points to the gluapack CDN.
4. When a player connects, they will download the .BSP file containing your packed clientside/shared Lua files.
5. If a player needs anything else from FastDL, the gluapack CDN will redirect any subsequent requests to your normal FastDL server, if you have one.
6. Once the player has spawned in, their client will unpack the .BSP file containing your clientside/shared Lua files into a virtual file system.
7. gluapack will then invoke the Lua from the virtual file system when it is included, loaded or compiled.
Product reviews
4.63 average based on 40 reviews
Buy product
Uses third party DRM. The product author has marked that this product uses a third party DRM service, you might have restricted access to the product source code and/or require additional setup after purchase.
Product details
Requirements
- Windows/Linux Server
- Firewall setup to allow outbound HTTP requests (ports 80, 443 and 8443)