Author Topic: CPU Usage  (Read 1178 times)

Offline vale

  • Newcomer
  • *
  • Posts: 24
    • View Profile
CPU Usage
« on: April 01, 2023, 08:42:46 AM »
Hi!
Last night i was out at an event. Had to transmit 28 pictures. My MBP 2014 (which was on 5% battery) was painfully slow exporting to jpeg. Arrived at home, plugged in, did the same export an it feels like it was faster. I started to search to see if Apple throttle the cpu when on low power. Some says it does, and it is ok if you know it. However, some fixes suggested that one should look at cpu usage to see if it is the case.
Today did some tests (plugged in and on (full) battery). And I found out that PM doesn't use 100% of cpu when exporting. Tried the same pictures in Lr and when that exported, it was at 100. Curiously, the export was slower (10 seconds with similar settings).
So, my question is: why not use the full power of cpu to gain more speed and gain some more time?

PS: i also tried with my desktop. Same result (not 100% cpu usage). The differentiator here was that Lr was faster when used for export with 15 sec, compared to PM with 30 sec.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: CPU Usage
« Reply #1 on: April 01, 2023, 02:08:19 PM »
Hi!
Last night i was out at an event. Had to transmit 28 pictures. My MBP 2014 (which was on 5% battery) was painfully slow exporting to jpeg. Arrived at home, plugged in, did the same export an it feels like it was faster. I started to search to see if Apple throttle the cpu when on low power. Some says it does, and it is ok if you know it. However, some fixes suggested that one should look at cpu usage to see if it is the case.
Today did some tests (plugged in and on (full) battery). And I found out that PM doesn't use 100% of cpu when exporting. Tried the same pictures in Lr and when that exported, it was at 100. Curiously, the export was slower (10 seconds with similar settings).
So, my question is: why not use the full power of cpu to gain more speed and gain some more time?

PS: i also tried with my desktop. Same result (not 100% cpu usage). The differentiator here was that Lr was faster when used for export with 15 sec, compared to PM with 30 sec.

When you say "when exporting", which specific dialog/feature are you using in PM?

-Kirk

Offline vale

  • Newcomer
  • *
  • Posts: 24
    • View Profile
Re: CPU Usage
« Reply #2 on: April 01, 2023, 02:29:46 PM »
Sorry, i should mention it: "Save photos as.."
From NEF to jpeg

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: CPU Usage
« Reply #3 on: April 01, 2023, 02:49:44 PM »
Sorry, i should mention it: "Save photos as.."
From NEF to jpeg

Are you using RAW rendering via the Adobe DNG converter?

-Kirk

Offline vale

  • Newcomer
  • *
  • Posts: 24
    • View Profile
Re: CPU Usage
« Reply #4 on: April 01, 2023, 02:52:26 PM »
I don't know the answer to this question. is there an option in preferences?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: CPU Usage
« Reply #5 on: April 01, 2023, 02:54:19 PM »
I don't know the answer to this question. is there an option in preferences?

Yes, on the Render Cache page of the Preferences dialog.

-Kirk

Offline vale

  • Newcomer
  • *
  • Posts: 24
    • View Profile
Re: CPU Usage
« Reply #6 on: April 01, 2023, 03:00:50 PM »
adobe dng, cache size 4098 mb

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: CPU Usage
« Reply #7 on: April 03, 2023, 09:10:02 AM »
adobe dng, cache size 4098 mb

PM will be sitting idle while waiting for the Adobe DNG Converter to convert your NEF to a DNG and when that completes, PM will extract the JPEG preview from the DNG and use it as the source image for saving to a new JPEG.  If you don't have any special needs (image corrections, cropping, scaling), then you'd be better off using the Extract JPEG Previews from RAW Photos command on the Tools menu.  It will extract the JPEG preview from your NEF and will be much faster.

-Kirk

Offline vale

  • Newcomer
  • *
  • Posts: 24
    • View Profile
Re: CPU Usage
« Reply #8 on: April 03, 2023, 12:14:14 PM »
oh, i understand.
if i extract the jpegs from raw, is the same thing as shooting in jpeg, right?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24767
    • View Profile
    • Camera Bits, Inc.
Re: CPU Usage
« Reply #9 on: April 03, 2023, 12:35:23 PM »
oh, i understand.
if i extract the jpegs from raw, is the same thing as shooting in jpeg, right?

I wouldn't go as far as to say that.  The JPEGs, when generated by shooting in JPEG or RAW+JPEG mode may be of better quality/resolution than the embedded JPEG preview in your NEFs.

-Kirk

Offline vale

  • Newcomer
  • *
  • Posts: 24
    • View Profile
Re: CPU Usage
« Reply #10 on: April 03, 2023, 12:38:43 PM »
good to know. next time i'll use raw+jpeg, i'll see how i manage them.
thank you!