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

Update perf display style #330

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

beaufortfrancois
Copy link
Collaborator

This PR moves the perf display to the bottom left (instead of top left) so that controls can be accessed on mobile devices. It also updates style to make it look nicer (to my eyes at least).

old vs. new

@beaufortfrancois
Copy link
Collaborator Author

@kainino0x Please review.

cc @toji

@greggman greggman self-requested a review November 22, 2023 15:16
Copy link
Contributor

@toji toji left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! I was going to try and tweak this today but I'm glad you got to it first because my version would have been uglier.

greggman added a commit to greggman/webgpu-samples that referenced this pull request Nov 22, 2023
I was surprised to learn that this didn't default
to z-Index > 0. I think it works in most apps because
it's expected not to call the GUI constructor until after
your other elements have been created? (I didn't look
too deeply)

It's possible you might want to move elements, see
webgpu#330
But in any case, it seemed like a good default.
@toji toji merged commit e59b766 into webgpu:main Nov 22, 2023
1 check passed
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.

3 participants