You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
Import times can be slow in complex 3D projects, especially on slower machines.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add an editor setting to (re)import resources in the editor as soon as possible, without waiting for the user to focus the editor window again.
Upsides:
Reimporting is done sooner, which leads to faster iteration times. In many cases, reimporting will be finished before you even refocus on the editor window.
Downsides:
Increased CPU usage, which may decrease battery life and steal CPU time from other (potentially demanding) applications. This is why it should be disabled by default 🙂
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
When the Import Resources When Unfocused editor setting is enabled, the editor should still attempt to import resources when focusing the editor window, but it should also have a timer that scans for file modifications every few seconds. (If there's already a pending import operation, it will continue to run.)
The scanning needs to be done relatively frequently to actually improve iteration times, but it shouldn't be done too often to avoid unnecessarily increasing CPU usage. Popular polling frequencies for this purpose are between 1 and 3 seconds.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, as triggering the reimport on filesystem changes needs to be done by the editor itself.
Is there a reason why this should be core and not an add-on in the asset library?
This is core editor functionality.
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
The Godot editor 🙂
Describe the problem or limitation you are having in your project
Import times can be slow in complex 3D projects, especially on slower machines.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add an editor setting to (re)import resources in the editor as soon as possible, without waiting for the user to focus the editor window again.
Upsides:
Downsides:
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Checking for files to reimport is currently handled here: https://github.com/godotengine/godot/blob/18c0f0b3ba46caf3f6dda401362bc5993eaf7f8d/editor/editor_node.cpp#L630-L636
When the Import Resources When Unfocused editor setting is enabled, the editor should still attempt to import resources when focusing the editor window, but it should also have a timer that scans for file modifications every few seconds. (If there's already a pending import operation, it will continue to run.)
The scanning needs to be done relatively frequently to actually improve iteration times, but it shouldn't be done too often to avoid unnecessarily increasing CPU usage. Popular polling frequencies for this purpose are between 1 and 3 seconds.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, as triggering the reimport on filesystem changes needs to be done by the editor itself.
Is there a reason why this should be core and not an add-on in the asset library?
This is core editor functionality.
The text was updated successfully, but these errors were encountered: