Skip to content

Conversation

@footballhead
Copy link
Collaborator

@footballhead footballhead commented Jan 6, 2026

--trigger_capture_after is useful for automated testing. It's already
used by --comamnd pm4_capture, but I wanted to use it for --command
gfxr_capture.

Similar to the template method pattern, TriggerGfxrCapture now defines a
capture workflow with some steps that the caller can now customize.

--trigger_capture_after is now optional with default behaviors that
match the prior implementation.

For --command gfxr_capture:

  • unspecified trigger_capture_after: ask for user input (old behavior)
  • trigger_capture_after X: wait for X seconds before taking the
    capture. Quit after the capture is retrieved

Since trigger_capture_after was also being used by --command
pm4_capture:

  • unspecified trigger_capture_after: wait for 5s (the old behavior)
  • trigger_capture_after X: wait for Xs (the old behavior)

@footballhead footballhead force-pushed the trigger_capture_after_gfxr_take2 branch from 726dedd to 8aa8a4d Compare January 6, 2026 21:58
@footballhead footballhead requested a review from hysw January 6, 2026 22:00
hysw
hysw previously approved these changes Jan 6, 2026
--trigger_capture_after is useful for automated testing. It's already
used by --comamnd pm4_capture, but I wanted to use it for --command
gfxr_capture.

Similar to the template method pattern, TriggerGfxrCapture now defines a
capture workflow with some steps that the caller can now customize.

--trigger_capture_after is now optional with default behaviors that
match the prior implementation.

For --command gfxr_capture:

-   unspecified trigger_capture_after: ask for user input (old behavior)
-   trigger_capture_after X: wait for X seconds before taking the
    capture. Quit after the capture is retrieved

Since trigger_capture_after was also being used by --command
pm4_capture:

-   unspecified trigger_capture_after: wait for 5s (the old behavior)
-   trigger_capture_after X: wait for Xs (the old behavior)
@footballhead footballhead force-pushed the trigger_capture_after_gfxr_take2 branch from 47f47ac to e74aa47 Compare January 6, 2026 22:21
@footballhead footballhead requested a review from hysw January 6, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants