You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task (REQUIRED):
We recently changed so that all platforms, not only LuaJIT based platforms, use Lua bytecode instead of source code. For Lua 5.1.5 it turned out that the bytecode is larger than the source code. Since Lua 5.1.5 is used for the HTML5 builds this is an unfortunate development because of the focus on small download for web games. The issue was raised in this forum post:
.lz4 = size of file as when compressed in the game.archive
.gz = size of file when sent “over the wire” for HTML5
It would seem like the correct solution to the problem would be to bundle the game with the --use-lua-source option, but this has the side-effect of flagging the Lua source code as uncompressed and unencrypted:
Expected outcome (REQUIRED):
We either need an option to say that the Lua source code should be compressed and encrypted even if stored as plain text source code or we need to revert back to always using Lua source code for Lua 5.1.5
The text was updated successfully, but these errors were encountered:
britzl
added
task
A task that needs to be performed
bob
Issues related to the bob command line build tool
lua
Issues related to the use of Lua
labels
Aug 18, 2022
britzl
changed the title
Add option to compress Lua source if it is used instead of bytecode
Generated Lua 5.1.5 bytecode is larger than Lua source code
Aug 19, 2022
Task (REQUIRED):
We recently changed so that all platforms, not only LuaJIT based platforms, use Lua bytecode instead of source code. For Lua 5.1.5 it turned out that the bytecode is larger than the source code. Since Lua 5.1.5 is used for the HTML5 builds this is an unfortunate development because of the focus on small download for web games. The issue was raised in this forum post:
https://forum.defold.com/t/defold-1-3-5-has-been-released/71451/4?u=britzl
Some measurements done to confirm this:
.lz4 = size of file as when compressed in the game.archive
.gz = size of file when sent “over the wire” for HTML5
It would seem like the correct solution to the problem would be to bundle the game with the
--use-lua-source
option, but this has the side-effect of flagging the Lua source code as uncompressed and unencrypted:https://github.com/defold/defold/blob/dev/com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/pipeline/LuaBuilder.java#L318-L331
This option was added to solve issues with Apple blocking the release of a game, as discussed in this forum post:
https://forum.defold.com/t/urgent-need-help-i-have-huge-problem-with-game-submission-to-apple/68031
Expected outcome (REQUIRED):
We either need an option to say that the Lua source code should be compressed and encrypted even if stored as plain text source code or we need to revert back to always using Lua source code for Lua 5.1.5
The text was updated successfully, but these errors were encountered: