Skip to content

Add three.js benchmark #75

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

iainireland
Copy link

No description provided.

Copy link

netlify bot commented May 27, 2025

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit 8bf7b83
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/683642298f8c1200095d4c47
😎 Deploy Preview https://deploy-preview-75--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Constellation Constellation self-requested a review June 5, 2025 21:54
const canvas = {}
canvas.addEventListener = function() { }
canvas.style = {}
canvas.getContext = function(kind) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd probably define the mock-canvas as object literal:

const canvas = {
  addEventListener() {},
...
}

for(let i = 0; i < NUM_PARTICLES; i++) {
const size = 10 + Math.random() * 80;
const particle =
createGeometryParticle(size);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: superfluous newline


// Initialize particles
const particles = [];
for(let i = 0; i < NUM_PARTICLES; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we put this in the init() method?
This might be nice in the future for getting some extra coverage if we add timers.

@camillobruni
Copy link
Contributor

Generally LGTM.

Would it make sense to bump to the latest threejs version as well?
This would help comparing the profiles against the actual GPU rendered page a bit easier.

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