DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: ScreenshotCaptor now prevents CPU from going to low-power mode  (Read 6,278 times)

sba

  • Member
  • Joined in 2007
  • **
  • Posts: 57
Hi,

While investigating my laptop's power consumption using "powercfg /energy" I noticed that ScreenshotCaptor is now listed as one of the processes that use the CPU in such a way that prevents it from being switched to its lowest-power mode. This was not the case previously (before 4.8?).

Process Explorer seems to reveal some sort of polling: see the huge number of cycles and context switches in the attached screenshot.

Can you please look into this (and fix the issue)?

Best regards,

Stéphane.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: ScreenshotCaptor now prevents CPU from going to low-power mode
« Reply #1 on: May 26, 2014, 08:06 PM »
Can you check this:

Go to "Startup Options" tab, and look where it says "Inactive Memory Use" -- and make sure you don't have it set to "Stay in Memory Longer" (try Minimal Memory Use).
I don't know if that will solve it -- it may be polling for changes to the screenshot folder to check for changes.. If so, i *might* be able to add an option to disable that.. though it could be messy.

sba

  • Member
  • Joined in 2007
  • **
  • Posts: 57
Re: ScreenshotCaptor now prevents CPU from going to low-power mode
« Reply #2 on: May 27, 2014, 07:18 AM »
The "memory" option, as expected, doesn't affect the polling.

You don't need to poll to discover changes in a directory: use FindFirstChangeNotification (http://msdn.microsoft.com/en-us/library/windows/desktop/aa364417(v=vs.85).aspx) to get notified when something happens in the screenshot folder.

sba

  • Member
  • Joined in 2007
  • **
  • Posts: 57
Re: ScreenshotCaptor now prevents CPU from going to low-power mode
« Reply #3 on: June 13, 2014, 05:11 AM »
Any  news?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: ScreenshotCaptor now prevents CPU from going to low-power mode
« Reply #4 on: June 13, 2014, 12:00 PM »
Can you email me (mouser@donationcoder.com) -- i'd like to try making a special build to see if we can figure out which library/component is doing the polling and go from there.

Original address: https://www.donationcoder.com/forum/index.php?topic=38026.0