Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Detect and remove duplicate textures in level assets #261

Open Zemanzo opened 4 years ago

Zemanzo commented 4 years ago

Description Currently when uploading models, each model gets stored separately. If a two models have an identical texture, it is not shared, but instead saved twice. This creates unnecessary bloat in the level files, and causes the client to load the level slower due to a higher file size. To solve this, it would be good to detect duplicate textures in models. The texture will be saved once, and inside the models there will only be a reference to this texture.

Minimum Acceptance Criteria

Related issues

262 should be taken into consideration when working on this issue