godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.2k stars 21.03k forks source link

Editor memory usage increases everytime project is started #97583

Open TheDying0fLight opened 2 weeks ago

TheDying0fLight commented 2 weeks ago

Tested versions

System information

Godot v4.3.stable (77dcf97d8) - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4080 SUPER (NVIDIA; 32.0.15.6109) - AMD Ryzen 7 7800X3D 8-Core Processor (16 Threads)

Issue description

Using Run Project(F5) over and over increases the ram usage of the editor by 100-200MB each time

Steps to reproduce

Run Project(F5) over and over

Minimal reproduction project (MRP)

N/A

JekSun97 commented 2 weeks ago

@TheDying0fLight Can you provide screenshots or video, I can't play it

TheDying0fLight commented 2 weeks ago

Here are some screenshots and a short clip, I hope they help. If you need anything specific tell me.

New empty project: image

Running simple scene multiple times: image

Initial RAM usage: image

Starting the game: https://github.com/user-attachments/assets/6e1b58fa-6529-4e40-8d4c-ecda398139bf

After starting the game many times: image

After restart: image

matheusmdx commented 2 weeks ago

Tried to reproduce this issue, in my case i had a very small memomy increase (0.1 MB per attempt) and after ~20 cycles the memory didn't increased anymore so maybe is something in the project and in this case a mrp or the project can be necessary to help.

TheDying0fLight commented 2 weeks ago

This is a project where this happens: https://drive.google.com/file/d/1i7TnD0JEZvWqNhx2LK0vJr1cbOzG5LYQ/view?usp=drive_link It could also be something that is not removed when uninstalling Godot on Steam, do you know what files remain between installations so I could try removing them?

matheusmdx commented 1 week ago

This is a project where this happens: https://drive.google.com/file/d/1i7TnD0JEZvWqNhx2LK0vJr1cbOzG5LYQ/view?usp=drive_link

This is just a empty project and don't reproduce any issue.

TheDying0fLight commented 1 week ago

But this is a project where this issue happens for me. Maybe it is something with the editor settings as they are set seperate from the project. Whats especially weird is that this only happens with the steam version of 4.3 and not the web download.