[SOLVED] MM5 - High CPU on visualization

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

tag25
Posts: 41
Joined: Mon May 18, 2020 2:15 pm

[SOLVED] MM5 - High CPU on visualization

Post by tag25 »

MM5 - High CPU on visualization

STR (steps to reporoduce):
1. Launch MM5
2. Play a track
3. Right-Click the bottom bar and tick "Visualization" and the CPU goes from 2% to 99% (I use process explorer to watch the CPU). High CPU but MM5 still responds and doesn't crash.

Here's the dbgview of this STR. - https://drive.google.com/file/d/10ZUDUO ... sp=sharing

Another related issue:
If I tick Layout > Player > Metadata > Visualizer to ON then CPU goes from 2% to 8% . This isn't bad as 99% but still it's too high.

Thanks in advance

Win 7 x64
MM5 2302
Lowlander
Posts: 59391
Joined: Sat Sep 06, 2003 5:53 pm

Re: MM5 - High CPU on visualization

Post by Lowlander »

What Visualization are you using? I'm seeing 10-13% CPU with MMW5 the active window and less when not the active window with Milkshake with Che - Escape Preset.
tag25
Posts: 41
Joined: Mon May 18, 2020 2:15 pm

Re: MM5 - High CPU on visualization

Post by tag25 »

I'm using "Basic bars". Same 99% CPU on the other visualizations as well except Milkshake (Milkshake gives me no visualization).
MiPi
Posts: 924
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: MM5 - High CPU on visualization

Post by MiPi »

The visualization is as simple as possible. In case it is too CPU time consuming and makes it some problems, I could only recommend to not use it. It is based on Chromium rendering and we could not optimize it much. Anyway it should not affect ability of responses of the application.
tag25
Posts: 41
Joined: Mon May 18, 2020 2:15 pm

Re: MM5 - High CPU on visualization

Post by tag25 »

Thank you @Mipi for the explanation (As soon as I found out what caused the high CPU I've disabled the Visualization and the Visualizer).
When I had the small "Visualizer" ON the CPU was not going below 8%. It took me some time to find out what caused this high CPU.
I can't remember if the "Visualizer" was enabled when I first installed MMW.
So maybe if its ON by default should MMW devs change it to OFF and add a warning that enabling it might take high CPU (it is especially important to laptop users who care about battery life).
Peke
Posts: 18600
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: MM5 - High CPU on visualization

Post by Peke »

Hi,
If you refer to small spectrum analyzer in player, it is enabled by default, but on all PCs i have tested CPU usage have never went over 3% and that was very low end 2 Core/2 Threads CPU with integrated GPU (graphics).

I am curious can you make screenshot of your My Computer (This PC) properties?
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
drakinite
Posts: 988
Joined: Tue May 12, 2020 10:06 am
Contact:

Re: MM5 - High CPU on visualization

Post by drakinite »

An important consideration of the visualization is the size of the canvas (how big the visualization picture is on your screen). The bigger it is, the more resources it will need for rendering. This is why the tiny visualization on the bottom of the screen takes such a small amount of resources. When you had the visualization on, was it in the corner of the screen, or was it taking up the entire window?
Image
Data scientist, web programmer, part-time MediaMonkey developer, full-time MediaMonkey enthusiast
I uploaded many addons to MM's addon page, but not all of those were created by me. "By drakinite, Submitted by drakinite" means I made it on my own time. "By Ventis Media, Inc., Submitted by drakinite" means it may have been made by me or another MediaMonkey developer, so instead of crediting/thanking me, please thank the team. You can still ask me for support on any of our addons.
tag25
Posts: 41
Joined: Mon May 18, 2020 2:15 pm

Re: MM5 - High CPU on visualization

Post by tag25 »

My PC - https://i.imgur.com/GrBuux4.png

Using Process Explorer :
Full screen Visulaization - "CPU Usage" - avg. 95%

Visulaization - OFF :
Without Tiny Visulaizer "CPU Usage" - avg. 10%
With Tiny Visulaizer "CPU Usage" - avg. 23%
Peke
Posts: 18600
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: MM5 - High CPU on visualization

Post by Peke »

Hi,
OK, looks like you have CPU software decoder instead of GPU, but also https://ark.intel.com/content/www/us/en ... z-fsb.html is very low spec now 10 year old CPU.

Can you please make screenshot of these apps:
- GPU-Z: https://www.techpowerup.com/download/techpowerup-gpu-z/ (Start Page)
- CPU-Z: https://www.cpuid.com/downloads/cpu-z/cpu-z_1.95-en.zip (CPU and Motherboard tabs)
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
Posts: 18600
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: MM5 - High CPU on visualization

Post by Peke »

Hi,
As I suspected your PC specs are very very low. It is 11+ years old and behavior is more than normal with that CPU and integrated Graphics card.
There is no Hardware acceleration on any GPU tasks and it is DirectX 9.0c compatible.

If you do not want or do not have money for upgrade I would suggest to spend few bucks and do at least upgrade to Newer CPU and GPU, but I guess that you get Motherboard+CPU(With cooler)+GPU+4GB Memory (DDR3 as you now have DDR2) for <50 USD.

Your Motherboard is 11+ years old it needs to be upgraded https://www.asrock.com/mb/Intel/G31M-S/#BIOS You are using bios version 1.90 and there are functional upgrades.

I hope you can ship some to your country.
Upgrade CPU based on https://www.asrock.com/mb/Intel/G31M-S/#CPU : Q9450 for less than 20 USD Like this one https://www.ebay.com/itm/Intel-Core-2-Q ... 3885665129
Upgrade GPU suggestion ATi Radeon GPU series 5450/6450/7570/8490 and spend no more than 10 USD eg. like this one https://www.ebay.com/itm/AMD-Radeon-ATI ... 4304694990

Not sure what CPU cooler you have but I think you can buy good used 775 CPU cooler for less than 10 USD.

With that upgrade you would get at least 20-30% speedup in desktop use and overal PC performance, but you really need whole PC upgrade.

NOTE buying SSD HDD ill not get you any more speed as Motherboard is SATA2 and can't utilize more than 1/3 of SSD speed.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
tag25
Posts: 41
Joined: Mon May 18, 2020 2:15 pm

Re: [SOLVED] MM5 - High CPU on visualization

Post by tag25 »

Yes, I intend to buy a new laptop but anyway many thanks @peke for your detailed post !!

Maybe I'll use your post info if I decide to keep my old PC and upgrade it.
Also your post might be useful for others with old PC's.
Peke
Posts: 18600
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: [SOLVED] MM5 - High CPU on visualization

Post by Peke »

Hi,
Unfortunately each PC has its on story and needs to be handled separately. We will be glad to help if possible even that means we have bug in MM and need to fix it.

Wish you luck. I am glad that we have found the actual reason for high CPU. MM5 is Chromium based that renders realtime and easy to customize, so many things depends on chromium, like you pointed when you disable many visual enhancements.

Personally I am glad that I helped.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply