All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Resource Trimmer

Resource Trimmer

by Darkhax • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

This mod removes networking overhead by removing the unnecessary namespace from vanilla resource locations. This change will save 10 bytes per occurrence. 

How it works?

Minecraft uses namespaced identifiers often called resource locations. Each identifier has a namespace and a path which describes a game object. The namespace is optional and is assumed to be minecraft if it is not specified. The vanilla network encoders still include the namespace even if it is not necessary which adds unnecessary overhead.

How effective is this change?

Each occurence of the default namespace adds 10 bytes of unnecesary overhead. Players can expect the login process the be reduced by at least 105kb. The amount reduced increases with the amount of additional content installed, for example the login process for the ATM 10 modpack is reduced by at least 125kb. While this may sound like a small reduction, the overhead is unnecesary and can have a meaningful impact for players with a poor internet connection and for servers with a large player base. This mod can also help mitigate issues wit packets exceeding the 2mb limit. This mod is not a silver bullet that can solve all of your issues but it is another tool to be considered. 

The following list shows how long it takes to transfer a 120kb packet over a perfect bidirectional network. In the real world speeds are limited by the upload speed of the server, the download speed of the player, and many other factors. 

  • 5Mbps = 192ms
  • 10 Mbps = 96ms
  • 15 Mbps = 64ms
  • 100 Mbps = 9.6ms
  • 200 Mbps = 4.8ms
  • 500 Mbps = 1.92ms
  • 1000 Mbps = 0.96ms

Note: 120kb is 960,000 bits and a 1Mbps connection transfers 1,000,000 bits per second. Internet providers list their speeds in megabits per second and not megabytes to mislead consumers.

Server? Client? Singleplayer?

The changes made by this mod should be fully compatible with clients and servers, even if they do not have this mod installed. For example modded servers will send smaller packets to any client, and modded clients can send smaller packets to any server including vanilla servers. These changes also apply to singleplayer and LAN mode which still rely on packets to the integrated server. If possible, we recommend that all players and the server have this mod installed for the most benefit.

Compatibility

This mod uses Mixin to apply its changes. While this is common for moddern Minecraft mods it always carries a risk of causing incompatibilities with other online mods or modified clients. The changes made by this mod are within the vanilla spec and should be compatible with everything that fully implements it. There are no known incompatibilities.

This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Neoforge
29d ago 1
26.3
Fabric
29d ago 1
26.2
Fabric
4mo ago 1
26.2
Neoforge
4mo ago 1
26.1.x
Fabric
4mo ago 1
26.1.x
Neoforge
4mo ago 1
26.1.x
Fabric
6mo ago 1
26.1.x
Neoforge
6mo ago 1
1.21.1
Neoforge
last yr. 1
1.21.1
Forge
last yr. 1
1.21.1
Fabric Quilt
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Forge
last yr. 1
1.21.1
Fabric Quilt
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Forge
last yr. 1
1.21.1
Fabric Quilt
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Forge
last yr. 1
1.21.1
Fabric Quilt
last yr. 1
This is the first successful build for 26.3. You can learn more [here](https://github.com/Darkhax-Minecraft/Resource-Trimmer/commits/26.3/).

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Tobias Ward
  • noobanidus
This is the first successful build for 26.3. You can learn more [here](https://github.com/Darkhax-Minecraft/Resource-Trimmer/commits/26.3/).

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Tobias Ward
  • noobanidus
This is the first successful build for 26.2. You can learn more [here](https://github.com/Darkhax-Minecraft/Resource-Trimmer/commits/26.2/).

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Keyana
  • Darkosto
  • Tobias Ward
  • noobanidus
This is the first successful build for 26.2. You can learn more [here](https://github.com/Darkhax-Minecraft/Resource-Trimmer/commits/26.2/).

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Keyana
  • Darkosto
  • Tobias Ward
  • noobanidus
  • Fix dependency metadata and changelog generation.

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Keyana
  • Darkosto
  • Tobias Ward
  • noobanidus
  • Fix dependency metadata and changelog generation.

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Keyana
  • Darkosto
  • Tobias Ward
  • noobanidus
This is the first successful build for 26.1.2. You can learn more here: https://github.com/Darkhax-Minecraft/Resource-Trimmer/commits/26.1.2/

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Keyana
  • Darkosto
  • Tobias Ward
  • noobanidus
This is the first successful build for 26.1.2. You can learn more here: https://github.com/Darkhax-Minecraft/Resource-Trimmer/commits/26.1.2/

This project is made possible with [Patreon](https://www.patreon.com/Darkhax) support from players like you! Thank you!
  • lothrazar
  • techsquirrel
  • Keyana
  • Darkosto
  • Tobias Ward
  • noobanidus
  • Update project info.
  • Remove unnecessary case sensitivity checks.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Update project info.
  • Remove unnecessary case sensitivity checks.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Update project info.
  • Remove unnecessary case sensitivity checks.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Fix incorrect logo file for mod menus.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Fix incorrect logo file for mod menus.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Fix incorrect logo file for mod menus.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Optimize images to drastically reduce file size.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Optimize images to drastically reduce file size.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Optimize images to drastically reduce file size.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Fix project ID.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Fix project ID.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

  • Fix project ID.

This project is made possible by [Patreon](https://www.patreon.com/Darkhax?resourcetrimmer) support from players like you. Thank you!

  • lothrazar
  • Spencer Gilbert
  • Tobias Ward
  • Solorah
  • Pongo Sapiens
  • noobanidus
  • Darkosto

Resource Trimmer Icon
Download Resource Trimmer
Select game version
Select platform