godot-extended-libraries / godot-debug-menu

Display in-game FPS/performance/hardware metrics in a Godot 4.x project
https://github.com/godot-extended-libraries/godot-debug-menu-demo
MIT License
429 stars 16 forks source link

Implement memory monitoring. #8

Open Kabir404 opened 1 year ago

Kabir404 commented 1 year ago

Hello there!

Since Godot(Atleast in 4.x in my testing) actually supports memory monitoring. I think it should be possible to implement both RAM and VRAM usage in the monitoring as well....

....like this is the final thing that its missing to make this the perfect plugin to monitor performance stats..

Calinou commented 1 year ago

I think it should be possible to implement both RAM and VRAM usage in the monitoring as well....

While Godot has its own memory tracking mechanisms, it may not be very accurate. VRAM usage monitoring depends on https://github.com/godotengine/godot-proposals/issues/6820 being implemented if you want to know the value that the graphics driver actually uses (i.e. the system-wide value).

The same goes for RAM usage – I could expose Godot's own counters, but I fear their relative lack of accuracy compared to the process-wide RSS counter may be misleading. I think most people would expect the reported values to be a perfect match for what the OS' task manager "sees".