Windows 11, Vulkan API 1.3.280 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3060 Ti
Issue description
Can see memory increasing and Object count increasing by this code:
extends Node2D
func _ready() -> void:
for i in 100:
for j in 10:
var a = GDScript.new()
a.source_code = "extends Object\nvar value = 2212"
a.reload()
await get_tree().create_timer(1).timeout
Object's count won't increase without using reload() however we must use reload() to let the code take effect if we want to use somthing like var obj = a.new()
Tested versions
System information
Windows 11, Vulkan API 1.3.280 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3060 Ti
Issue description
Can see memory increasing and Object count increasing by this code:
Object's count won't increase without using
reload()
however we must usereload()
to let the code take effect if we want to use somthing likevar obj = a.new()
Steps to reproduce
Minimal reproduction project (MRP)
test_resource_free.zip