Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6569407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:37:23+00:00 2026-05-25T14:37:23+00:00

The requirement is like this: I must issue a command requesting a screenshot. The

  • 0

The requirement is like this:

I must issue a command requesting a screenshot. The twist? The command specifies a time – and that time is in the PAST. Not forever, mind you, just within a 30 second window.

My command indicates the actual second, and the corresponding screenshot is pulled from the rolling cache and saved in a permanent location for another process.

To accomplish this, I must take a screenshot every second, and I must preserve them for 30 seconds. After that the cache can purge itself.

My question is

What method for screenshots is least impactful against the desktop?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:37:24+00:00Added an answer on May 25, 2026 at 2:37 pm

    I can’t imagine that one frame per second is going to be terrible for performance. Have you tried the simplest possible method to see if it impacts performance?

    Take a look at http://www.dotnetjalps.com/2007/06/how-to-take-screenshot-in-c.html for information on how to get a screen shot.

    I would suggest you use a timer:

    var ssTimer = new System.Threading.Timer((s) =>
        {
          GetAndStoreScreenShot();
        }, null, 1000, 1000);
    

    You’ll need some synchronization on your cache to prevent threading problems (i.e. trying to read the first item in the cache while it’s being pushed out). Probably easiest to use a lock, since that’s not going to be particularly performance sensitive.

    As for what to use for a cache, I’d suggest a LinkedList. It’s easy to append to the list (AddLast()) and remove the first item (RemoveFirst()), and since you’ll only have 30 of them and requests for screen shots will be relatively infrequent, a sequential scan to get the nth item wouldn’t be too time consuming.

    Or you can implement a simple circular buffer using List or Array. Increment an index to be the insertion spot, wrapping around when you increment off the end. A lookup then becomes a simple matter of modulo arithmetic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in JTable and I have a requirement like this. Say There
I've a requirement something like this . I've to convert an Excel to XML
the Requirement in simple words goes like this. Its a charting Application ( kinda
I mean something like this: http://www.globalscaletechnologies.com/p-25-sheevaplug-dev-kit-uk.aspx My minimal hardware requirement is: Ethernet card UPDATE:
It seems like a standard requirement: next time the user launches the application, open
I'd like to enforce a requirement that client script inside a page (which in
A requirement for a program I am writing is that it must be able
I know questions like this have been asked numerous times, but not quite this
I'm trying to achieve a layout in html that looks exactly like this when
To preface we have a strange requirement that all dialogs must be modeless for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.