xenolightning / AudioSwitcher_v1

Version 1 of Audio Switcher
Microsoft Public License
894 stars 90 forks source link

High CPU and Memory Utility #2146

Open Wadera opened 7 years ago

Wadera commented 7 years ago

My Set:

Audio Swither Utilize ~25% CPU Usage and lot of RAM memory.

audioswitherutility

xenolightning commented 7 years ago

Does it happen immediately. Or is it after the application has been running for a long time?

Wadera commented 7 years ago

CPU - immediately. Memory utilization slowly increases (~1MB / 10 sec).

xenolightning commented 7 years ago

Ok, interesting. I wonder if Windows has changed something. I'll investigate it on the same build of Windows and get back to you.

In the meantime, can you screenshot the "Sound Dialog" from Control Panel, showing playback and recording devices, and showing any disabled/disconnected devices. High CPU might be caused by the number of devices on the system.

I may put together a new version tonight, and see if it helps with the problem.

Currently the website is down, which is getting fixed, but I'll upload any new versions to github first and link it in this issue.

Wadera commented 7 years ago

Btw, first service on top screen is sppsvc (Microsoft Software Protection Platform Service).

It isn't first time so i decide to send ticket, but I can't reproduce it every time. Thank you for your interest. Let me know if you need more information.

Screenshot below:

1 2 settings hotkeys about uptime

xenolightning commented 7 years ago

Awesome! That's a lot of info in those screenshots.

I can't reproduce it immediately either. I wonder if it has to do with the volume monitors on application sound sessions.

A place to start looking might be if the system creates a large amount of sessions. You can view by opening the standard Windows volume mixer, it allows you to control volume per application.

This is one of the only places I could see the application using a large amount of CPU.

Just "brain dumping" here at the moment, not really anything concrete to start investigating.

vlakoff commented 7 years ago

Can you fix the bug by disconnecting some sound peripherals? Just to know if the issue is related to a peripheral in particular.

vlad-fp commented 7 years ago

Hello, Xeno, firstly thank you for making such a useful app for me <3. Secondly, ever since I upgraded from win7 to win10 I have the same problem with CPU usage. task_manager

sambul13 commented 6 years ago

It may be the same bug described here.

xenolightning commented 6 years ago

Yeah both are related. And it looks to be with the Audio Session code in the api.

Win10 seems to do something different, and takes longer to activate the audio sessions, or they are being activated incorrectly.

I'll be looking at fixing this, and releasing an updated version.

panyann commented 4 years ago

Screenshot_1

I'de like to notice that the problem still exists. 100% usage of probably 1 CPU core on Windows 10 start...