Godot reduce export size | Learn how to reduce export size

preview_player
Показать описание
In this tutorial, I will show you how to reduce the Godot export file size above 70% using JavaScript and gzip compression.

Chapters:
00:00 Create backup
00:36 Use SCN file format
01:34 Export project
03:20 pako_inflate JavaScript
05:34 Edit generated HTML file
06:30 Edit generated JS file
08:46 GZIP compression
09:58 Result

How to reduce Godot export size?

Step 1: SCN file format.
===================
Use SCN file format.
TSCN scenes are text scenes.
SCN scenes are binary scenes. smaller and faster to load. It is the best format to use if your game is big.

Step 2 : Export project.
===================
Export your project (turn off "Export with Debug" if you don't want it). In this tutorial, I use "Export with Debug." The "Export with Debug" option will increase the WASM file size.

Step 3: Use pako_inflate JavaScript.
==============================

Step 4: Edit the generated HTML file.
=============================
Link the JavaScript file.

Step 5: Edit the generated JS file.
===========================
Edit the load fetch function and preload function.
------------------------------

Step 6: Upload your files to the server and then compress PCK and WASM file.
===================
Compress the PCK and WASM files using the cPanel compression option. Use GZIP compression.

step 7: Result
============
Open your game in the browser. To check the result, use developer tools. You can check the how much data transferred using browser developer tools.

HARD REFRESH shortcut key: Ctrl+F5
(Sometimes it shows cached files, so you need to perform a hard refresh on your browser tab. A hard refresh will clear the browser's cache for a specific page and force the browser to load the new version of the page.)

#godot #The888AngelLabs #godotengine
Рекомендации по теме
Комментарии
Автор

A great thanks, now i can upload my game in small size thanks you so much

nobita-nobii
Автор

it gives me a incorrect header check in itchio

thehouzetize
join shbcf.ru