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

[REQUEST] Parse narrat labels (or script files?) just in time #72

Open
liana-p opened this issue Jun 11, 2023 · 0 comments
Open

[REQUEST] Parse narrat labels (or script files?) just in time #72

liana-p opened this issue Jun 11, 2023 · 0 comments
Labels
enhancement New feature or request performance

Comments

@liana-p
Copy link
Owner

liana-p commented Jun 11, 2023

Is your feature request related to a problem? Please describe.
(This is pretty low priority as few games even have that problem for the moment).

Large narrat games can take a bit of time to load due to the huge amount of scripts to parse on game load.

We could make this faster by only parsing files or labels when they're reached. It could also save memory by not keeping the data for every single script/label saved constantly. I haven't checked if memory is an issue, but I suspect it could be on large games if played on a lower end device.

Describe the solution you'd like
The game could load all scripts, find all labels (very quick to do), but not parse the actual code in them.

Then only when using a certain label would it parse either the file containing that label, or maybe even just specifically that label, which should pretty much be instant.

Only issue is in dev mode it's useful to parse the whole game on launch to find script issues, so maybe we want an option to still be able to do that during dev, or maybe a "check scripts" button somewhere?

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@liana-p liana-p added enhancement New feature or request performance labels Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

No branches or pull requests

1 participant