DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Low performance with high memory usage

Open tomseli opened this issue 9 months ago • 4 comments

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:

  1. Run the program listed below
  2. Open the metrics panel
  3. Observe <40 FPS
  4. Open task manager
  5. 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)
  6. Open the performance tab in task manager
  7. 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

Image

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()

tomseli avatar Mar 17 '25 15:03 tomseli

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.

v-ein avatar Mar 17 '25 17:03 v-ein

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!

tomseli avatar Mar 18 '25 07:03 tomseli

Although I'm not an expert, have you tried using a lower version? For example, version 1.11

nehonpa avatar Mar 24 '25 06:03 nehonpa

Please don't click the link in the notification you received for the previous comment. It's a scam.

v-ein avatar Apr 16 '25 18:04 v-ein