High CPU Usage

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
lian00
Posts: 429
Joined: 09 Jul 2014 17:12

High CPU Usage

Post by lian00 »

Hello, I notice that XYPlorer uses a lot of CPU just being open - I don’t do any manipulation. I excluded process from Windows Defender.

v.22900003
xyplorer.png
To see the attached files, you need to log into the forum.
Windows 10 64 bits

admin
Site Admin
Posts: 66620
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High CPU Usage

Post by admin »

Can't be. If XY is idle, CPU usage is zero. Have you tried a restart of XY?

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: High CPU Usage

Post by lian00 »

I did and it was quite normal. I think it’s not the first time I have this problem but I did not make regular tests. So, for the moment it’s OK and I will have a look from time to time to see if it happens again.
Windows 10 64 bits

admin
Site Admin
Posts: 66620
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High CPU Usage

Post by admin »

Are you using scripts? Maybe you fabricated some endless loop...

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: High CPU Usage

Post by lian00 »

I use some scripts. I will look what happens after using them.

By the way, the last beta "broke" my buttons used for scripts : "open" needs now ";" at the end to work and

Code: Select all

load "renommer"
did not work anymore, I had to change it to

Code: Select all

load "renommer.xys";
I suppose it’s normal but I was quite surprised.
Windows 10 64 bits

admin
Site Admin
Posts: 66620
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High CPU Usage

Post by admin »

v22.90.0007 should have fixed that.

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: High CPU Usage

Post by lian00 »

admin wrote: 22 Feb 2022 15:53 v22.90.0007 should have fixed that.
OK, so it was not something you wanted to change :titter:
Windows 10 64 bits

admin
Site Admin
Posts: 66620
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High CPU Usage

Post by admin »

Yep, this bug wasn't on purpose. ;)

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: High CPU Usage

Post by lian00 »

Middle click on button does not launch my script anymore :-( I’ve read the changes for last beta but I’m not sure I did understand correctly the changes.
Windows 10 64 bits

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: High CPU Usage

Post by lian00 »

It’s worst than that : clicking on a button does not execute the code put in edit mode. I missed something ?
Windows 10 64 bits

admin
Site Admin
Posts: 66620
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High CPU Usage

Post by admin »

It would help if you posted the button script...

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: High CPU Usage

Post by lian00 »

Code: Select all

foreach($file, "<get SelectedItemsPathNames |>") {
        $ext     = gpc($file, "ext");
        $oldName = gpc($file, "base");
        $newName = replace(recase($oldName, "lower"), " ", "-");
        rename "s", "$oldName/$newName";
        runret("""C:\Program Files\nconvert\nconvert.exe"" -ratio -rtype lanczos -rflag orient -quiet -resize longest 1200 -out jpeg -o ""G:\images\Output\%.jpg"" ""<curpath>\$newName.$ext""");
    }
    end confirm("Allez à Output ?") == 0;
    goto "G:\images\Output";
It’s a text button and it’s regular LM click. When I click it, it shows the code - I guess it’s from last update.
Windows 10 64 bits

admin
Site Admin
Posts: 66620
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: High CPU Usage

Post by admin »

Yep, fixed in next beta.

It will take a while until the fine line between multi-scripts and hamburgers is perfectly drawn...

Post Reply