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

Fix for interactive loader with subscenes #3

Open
wants to merge 1 commit into
base: GodotTestMaster
Choose a base branch
from

Conversation

Tugsav
Copy link

@Tugsav Tugsav commented Oct 15, 2019

NOTE: not for merging. i use this PR to review the changes i made

When polling the interactive loader for an external subscene a temporary interactive loader for the subscene is spawned.
Subsequent polls to the main loader will then poll the subscene loader instead of normal behavior until the subscene is completely loaded.
A new get_load_step_count() method has been added to the packed_scene class that recursively add together load steps from all of its subscenes
load_interactive has been implemented for ResourceFormatImporter
load_interactive has been implemented for gd scripts as well

The result of this commit is that the interactive loader now loads subscenes in several polls instead of loading the entire subscene in 1 poll.
This should result in smoother loading bars and (perhaps more importantly) better background loading
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

Successfully merging this pull request may close these issues.

1 participant