Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use EditorPlugin.build to compile Dart .dills #28

Open
fuzzybinary opened this issue Nov 25, 2024 · 0 comments
Open

Use EditorPlugin.build to compile Dart .dills #28

fuzzybinary opened this issue Nov 25, 2024 · 0 comments

Comments

@fuzzybinary
Copy link
Owner

fuzzybinary commented Nov 25, 2024

Instead of loading Dart from source during game launch, it might be faster to compile our Dart code into a Kernel and load that if it's available.

To do this, we would modify GodotDartEditorPlugin to override _build, and call into the Dart executable to compile the kernel.

Alternately, Dart_CompileToKernel may work as well, and wouldn't require we ask the shell to perform the work.

This should really only be done if it is faster to do this when a game over waiting for the script compile when the game launches.

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

No branches or pull requests

1 participant