Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Pre-compile scripts on export #167

Closed
MathieuLoutre opened this issue Nov 14, 2016 · 2 comments
Closed

Pre-compile scripts on export #167

MathieuLoutre opened this issue Nov 14, 2016 · 2 comments

Comments

@MathieuLoutre
Copy link
Contributor

I'm trying to reduce the payload/loading times for the game I'm working on. It looks like (from the console) that the TypeScript scripts are being compiled on the fly, even after export. Is there any way to pre-compile this and remove the compiler from the shipped code?

This may have the potential to make everything much lighter (there's over 2mo of JS shipped right now and it's unclear how heavy the plugins actually are but overall it could be well over 5mo). At the moment the loading time on mobile makes the whole thing almost unusable.

@Ikalou
Copy link
Contributor

Ikalou commented Nov 15, 2016

Hi,

There's already an issue on the topic : #158 ;)

EDIT: I've hacked something similar in one of my games that had a lot of scripts, and I can attest that it makes loading a lot faster on slower processors / mobile.

@MathieuLoutre
Copy link
Contributor Author

Ah sorry! Completely missed that somehow. Will close and move to the other issue. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants