Skip to content

test: Characterize and extract graphics timer dispatch wrappers #4522

Closed

Description

@zackees

Phase 5 prerequisite for porting gs_timer_destroy, gs_timer_begin, gs_timer_end and gs_timer_get_data to obs-graphics. These wrappers remain in libobs/graphics/graphics.c.h:2293-2335 without dedicated public-API characterization.

Add GPU-free cmocka characterization against hybrid libobs and libobs-c-reference before and after moving only these four functions verbatim into libobs/graphics/timer-dispatch.c.h in sorted unity position. Pin context-before-NULL checks, silent NULL commands versus diagnostic get_data guards, output writes (including backend false), exact pointer forwarding, dispatch order and backend-owned destruction. Preserve the Rust source profiler consumer unchanged. No existing C tests, public headers, workflows, WebSocket or test graph edits.

This is the testing-policy.md:189-215 prerequisite only. A separate issue will cover the Rust swap, Tier 1 mirrors, unchanged Tier 2 and original-C differential Tier 3. Tier 4 is inapplicable. Coordinated with sibling texture metadata extraction #4516; separate extracted file.

Activity

  1. added
    enhancement
    port
    ready
    P2
    size:S
    on Nov 10, 2026
  2. zackees commented on Nov 10, 2026

    @zackees
    MemberAuthor

    Claiming: timer dispatch characterization and extraction on branch test/extract-gstimer. 1. Characterize original public wrappers against hybrid and C reference. 2. Extract four wrappers verbatim and replay both libraries. 3. Run full lint once and publish according to backpressure this session; file the Rust swap separately.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 11, 2026
  4. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    Done on master: the characterization and extraction landed in 5f999b2 (#4545), and the Rust port in 2a0fea7 (#4557). Closing; it didn't close by itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions