Digital-Logic-Sim icon indicating copy to clipboard operation
Digital-Logic-Sim copied to clipboard

high cpu consumption on linux

Open braddr opened this issue 8 months ago • 5 comments

Just after startup, with a project open, while sitting idle, top reports 200% consumption on my intel E5-2650 @ 2.00GHz based system. Not super old, but not near top of the line either. I'm running Ubuntu 24.04.2 LTS. This is my first time playing with DLS on linux, so not sure if this is new or not.

    PID USER       PRI  NI  VIRT   RES   SHR S  CPU%-MEM%   TIME+  Command
 544713 braddr      20   0 4829M  222M 96580 S  63.6  0.7  3:30.24 ./Digital-Logic-Sim.x86_64

I tried cutting the 'steps per clocktick' and 'steps per second' down to 25 and 100 respectively, but neither seemed to have any effect.

braddr avatar Apr 13 '25 04:04 braddr

does it perhaps use the cpu for rendering?

lyranie avatar Apr 13 '25 04:04 lyranie

Good question. I'm using a NVIDIA GeForce GTX 1060 3GB, also a fairly low end card by today's standards, but not horrible either. Not sure how to be sure that DLS is using hardware accel or cpu rendering. I do have the nvidia v550 driver installed and X is clearly using it.

braddr avatar Apr 13 '25 04:04 braddr

I'll look into making it less resource-intensive!

SebLague avatar Apr 13 '25 07:04 SebLague

I was just encountering a similar issue with while I was using this on Linux. One of my CPU cores was pegged at 100% while doing nothing in a very small project. I am also using a NVIDIA GPU but on Arch with Hyprland.

ojpajama avatar Jul 07 '25 23:07 ojpajama

same on MAC, one thread always runs on high performance core with 100% usage, this drains battery very quickly. it is although the project is empty.

pavelrevak avatar Oct 23 '25 06:10 pavelrevak