godotengine / godot

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

Steam version: godot runs application, and steam eats memory each time it runned + UI Overlay problem #79732

Open PixelSymbols opened 1 year ago

PixelSymbols commented 1 year ago

Godot version

4.1.stable

System information

Windows 11, steam version

Issue description

Steam overlay works inside Godot

image image even tho its disabled

and this maybe what's causing it to eat heavily memory. this is my memory usage right now: image if ill run the project 15 times (by F5) image ram will go up if ill continue doing so 30-40 times more: image it will now be +5 gb. And the most weird thing, that its not the godot issue itself, but a steam image for whatever reason after you compile and run the project in godot, steam each time eats memory.

So i guess both these issues are connected. That steam does not clean up memory after godot game was closed image

So there are 2 bugs, one bug is from steam, about memory eating. But i guess the reason is that godot does not send to steam info that game inside godot was closed, which is why steam keeps ui overlay in memory. Also maybe godot fault or maybe steam fault that disabling (disabled by default) steam's ui overlay for godot does not work, it still works both inside the game engine and the game 🤔

also my current steam settings (maybe its important): image

Steps to reproduce

Download Godot in steam run project run project multiple times

Minimal reproduction project

Download Godot in steam run project run project multiple times

Calinou commented 1 year ago

This is likely because going from the project manager to editor starts a subprocess, and Steam isn't aware of this. (This is what causes the time tracking issues.)

Can you try opening the Steam overlay while in the project manager?

PixelSymbols commented 1 year ago

Can you try opening the Steam overlay while in the project manager?

no, i can't, in project manager overlay does not works, only in the editor and in the game

PixelSymbols commented 1 year ago

This is likely because going from the project manager to editor starts a subprocess, and Steam isn't aware of this. (This is what causes the time tracking issues.)

So, is it possible to fix right now and will it be fixed in the future, or its unlikely?

Calinou commented 1 year ago

So, is it possible to fix right now and will it be fixed in the future, or its unlikely?

https://github.com/godotengine/godot/pull/79126 could help with this, but it would add complexity to the buildsystem as described in its comments.

Zireael07 commented 1 year ago

https://github.com/godotengine/godot/issues/79639 is likely related to this one too (the latest comment mentions steam overlay)