Godot version
4.2 rc1
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
When you preload() a script or a scene (or possibly anything else), that resource will stay in memory in its original form and it's difficult to remove or update it. This leads to all sorts of issues, particularly when the initial loading fails the resource will be broken until editor restart or in worst case until the user performs some magic to fix the cached version (when restarting doesn't work).
Here's the list of issues caused by this behavior:
These two issues are solved, but they were related, so adding for context:
Related PRs (they don't fix the problem, but band-aid it partially):
Steps to reproduce
- Use
preload()
- Pray it won't cause problems (it will 😉)
Minimal reproduction project
N/A
Godot version
4.2 rc1
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
When you
preload()a script or a scene (or possibly anything else), that resource will stay in memory in its original form and it's difficult to remove or update it. This leads to all sorts of issues, particularly when the initial loading fails the resource will be broken until editor restart or in worst case until the user performs some magic to fix the cached version (when restarting doesn't work).Here's the list of issues caused by this behavior:
These two issues are solved, but they were related, so adding for context:
Related PRs (they don't fix the problem, but band-aid it partially):
CACHE_MODE_REPLACE(reverted) #84167 - helps reloading broken scenesSteps to reproduce
preload()Minimal reproduction project
N/A