Add option to "Delay capture" in capture UI

Open
#299 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
devtools

Research direction

Start at the capture UI and inspect how the existing Capture on reload option triggers captures. Define whether the option uses seconds, frames, or both, and how the visible countdown behaves; done means a user can trigger a delayed capture after switching to the canvas and interacting with it.

Written by the indexing model from the issue text.

Description

I think the problem in https://github.com/BabylonJS/Spector.js/issues/293#issuecomment-1888014443 could be solved by adding a delay.

If the UI allowed to "Capture in 5.0 seconds" then the user has a chance to click the capture button in the UI, switch to the canvas and then interact with it so it actually redraws the interesting portion when the capture happens.

A similar feature often exists in screenshot tools (as it does in physical cameras); often paired with a visible countdown so the user knows when the capture will happen.

It might also be useful to specify the delay in frames instead. This could also come handy with the "Capture on reload" option.

Dominant language
TypeScript
Stars
1.6k
Forks
189
Avg merge
12h 47m
Merged PRs (30d)
9

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BabylonJS/Spector.js

All issues in BabylonJS/Spector.js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.