Skip to content

Conversation

Howl-Kim
Copy link
Contributor

@Howl-Kim Howl-Kim commented Aug 27, 2025

Changes

  • Remove WebGPU option from option list if it is not available

Result

Chrome (v139.0.7258.139)

Screenshot 2025-08-27 at 2 24 42 AM

Safari (v18.6)

Screenshot 2025-08-27 at 2 24 31 AM

remove WebGPU option from option list if it is not available
@Howl-Kim Howl-Kim force-pushed the perf-test/check-GPU-feature-compatibility branch from be9507f to b663e09 Compare August 27, 2025 15:38
Copy link

vercel bot commented Aug 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
thorvg-perf-test Error Error Oct 2, 2025 11:49am

@Howl-Kim Howl-Kim marked this pull request as ready for review September 9, 2025 14:33
@tinyjin tinyjin requested a review from Copilot September 11, 2025 06:31
@tinyjin tinyjin self-requested a review September 11, 2025 06:31
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds runtime detection of WebGPU availability to conditionally display the ThorVG(WebGPU) option in the performance test interface. The change prevents users from selecting an unsupported rendering option when WebGPU is not available in their browser.

  • Replaces static player options array with dynamic generation based on feature detection
  • Adds WebGPU availability check using the Navigator API
  • Filters out WebGPU option when the feature is not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@tinyjin tinyjin added the enhancement Improve features label Sep 11, 2025
Copy link
Member

@tinyjin tinyjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check comment and copilot reviews.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

vercel bot commented Oct 16, 2025

@Howl-Kim is attempting to deploy a commit to the thorvg-web Team on Vercel.

A member of the Team first needs to authorize it.

@Howl-Kim Howl-Kim force-pushed the perf-test/check-GPU-feature-compatibility branch from 2196e6d to 86ee654 Compare October 16, 2025 12:43
//{ id: 4, name: `lottie-web@${reactLottiePlayerPkg.dependencies["lottie-web"]}` },
//{ id: 5, name: 'skia/skottie' },
];
const playerOptions = createAvailablePlayerOptions();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion:

const playerOptions = playerOptions = [
    { id: 1, name: 'ThorVG(Software)' }
];

if (navigator.gpu) {
    playerOptions.push({ id: 2, name: 'ThorVG(WebGPU)' });
}

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

Labels

enhancement Improve features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants