Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete the timer based measurement since we've switched over to #466

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Dec 20, 2024

requestAnimationFrame based measurement for 3.0 and found no issues.

@@ -122,8 +122,8 @@ class Params {
if (!searchParams.has("measurementMethod"))
return defaultParams.measurementMethod;
const measurementMethod = searchParams.get("measurementMethod");
if (measurementMethod !== "timer" && measurementMethod !== "raf")
throw new Error(`Invalid measurement method: '${measurementMethod}', must be either 'raf' or 'timer'.`);
if (measurementMethod !== "raf")
Copy link
Member Author

Choose a reason for hiding this comment

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

I kept this here since we may want to support "async" as an option now.

@rniwa rniwa force-pushed the delete-timer-test-invoker branch from 5661819 to 1393174 Compare December 20, 2024 10:46
resources/shared/params.mjs Outdated Show resolved Hide resolved
resources/shared/params.mjs Outdated Show resolved Hide resolved
requestAnimationFrame based measurement for 3.0 and found no issues.
@rniwa rniwa force-pushed the delete-timer-test-invoker branch from 1393174 to 6c58ff6 Compare December 20, 2024 18:14
@rniwa rniwa merged commit d87b307 into main Dec 20, 2024
4 checks passed
@rniwa rniwa deleted the delete-timer-test-invoker branch December 20, 2024 18:15
@camillobruni
Copy link
Contributor

  • Removing the timer-based code sounds good
  • Can we keep the UI so we can switch between the current rAF and the new async runner?

@rniwa
Copy link
Member Author

rniwa commented Dec 20, 2024

  • Can we keep the UI so we can switch between the current rAF and the new async runner?

I don't know what keeping the UI mean here because it's a checkbox with "rAF timing" label. Are you thinking of replacing that with "Async timing" or something?

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.

5 participants