You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
GDScript: Enable compression on export
Besides the regular option to export GDScript as binary tokens, this also includes a compression option on top of it. The binary format needs to encode some information which generally makes it bigger than the source text. This option reduces that difference by using Zstandard compression on the buffer.
This commit is contained in:
@@ -111,7 +111,7 @@ static void test_tokenizer(const String &p_code, const Vector<String> &p_lines)
|
||||
static void test_tokenizer_buffer(const Vector<uint8_t> &p_buffer, const Vector<String> &p_lines);
|
||||
|
||||
static void test_tokenizer_buffer(const String &p_code, const Vector<String> &p_lines) {
|
||||
Vector<uint8_t> binary = GDScriptTokenizerBuffer::parse_code_string(p_code);
|
||||
Vector<uint8_t> binary = GDScriptTokenizerBuffer::parse_code_string(p_code, GDScriptTokenizerBuffer::COMPRESS_NONE);
|
||||
test_tokenizer_buffer(binary, p_lines);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user