Low performance with high memory usage
Version of Dear PyGui
Version: 2.0.0 (ImGui 1.19.0) Operating System: Windows 11 CPU: Intel i5-1145G7 GPU: Intel Iris Xe Graphics RAM: 16GB at 3200MT
My Issue/Question
I've got a simple program that I strongly suspect is underperforming. The memory usage is extremely high, GPU utilisation is low. The program hovers between 35 and 40 FPS, with what feels like high input latency.
To Reproduce
Steps to reproduce the behavior:
- Run the program listed below
- Open the metrics panel
- Observe <40 FPS
- Open task manager
- Observe that a python process uses >1500MB after being on for ~5 minutes (resizing and minimizing the window seems to make this go even higher)
- Open the performance tab in task manager
- Observe that the GPU is at ~15% utilisation
Expected behavior
While I understand that this isn't the most powerful laptop in the world, the memory usage seems excessive. I remember (and unfortunately can't verify) that another laptop I had would run Dearpygui like a dream.
Screenshots/Video
Standalone, minimal, complete and verifiable example
The default example code is enough to reproduce this issue, other simple programs will also reproduce the issue:
import dearpygui.dearpygui as dpg
import dearpygui.demo as demo
dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=600)
demo.show_demo()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Looks like some kind of a leak. Some users reported leaks on Intel GPUs before, though the leaks were happening while application was in minimized state rather than with a regular expanded window. Unfortunately there's no fix or known workaround for that.
Okay- memory leaking while minimised is not a huge deal. ~~Is the lower performance due to the Intel GPU as well then~~.
Edit: Disregard the low performance. That's a remote desktop issue. Aside from my hope that someone will see this and knows a thing or two about GPUs that wishes to fix this issue ;), my question has been answered. Thanks for the help!
Although I'm not an expert, have you tried using a lower version? For example, version 1.11
Please don't click the link in the notification you received for the previous comment. It's a scam.