Skip to content

[TRACKER] Issues with preload cache #85081

@KoBeWi

Description

@KoBeWi

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

  1. Use preload()
  2. Pray it won't cause problems (it will 😉)

Minimal reproduction project

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions