Skip to content

Fix for interactive loader with subscenes#3

Open
Tugsav wants to merge 1 commit into
GodotTestMasterfrom
InteractiveLoaderFixMergeTest
Open

Fix for interactive loader with subscenes#3
Tugsav wants to merge 1 commit into
GodotTestMasterfrom
InteractiveLoaderFixMergeTest

Conversation

@Tugsav

@Tugsav Tugsav commented Oct 15, 2019

Copy link
Copy Markdown

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