Skip to content

Conversation

@gkjohnson
Copy link
Collaborator

Related issue: #27347

Description

  • Make sure the GPUStatsPanel queries are cleaned up.
  • Adjust the stats library to enable displaying the values to a custom precision.

As suggested in #27347 it might make sense to adjust stats.js to display more values of precision by default and make it display average value over time. And maybe expand the width of the stats panel to ~90-100 px so the min / max values can all be displayed.

cc @RenaudRohlinger


dom: canvas,

getDisplayValue: round,
Copy link
Collaborator

@Mugen87 Mugen87 Dec 12, 2023

Choose a reason for hiding this comment

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

I'm fine with making this change but we should clarify how to move on with cases when files in jsm/libs require a modification.

Normally, these files are just copied over and considered as read-only. If we modify them, they get out of sync compared to the original module. In this case: https://github.com/mrdoob/stats.js. The ideal workflow would be to modify the source in https://github.com/mrdoob/stats.js, make a release and then use the new build in three.js.

This workflow could be enforce by just deleting examples/jsm/libs/stats.module.js and import it directly from https://github.com/mrdoob/stats.js with a CDN like other external libs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry I forgot to mention that - I agree. @mrdoob what's your preference here?

@Mugen87
Copy link
Collaborator

Mugen87 commented Oct 31, 2024

GPUStatsPanel has been removed, see #29317.

@Mugen87 Mugen87 closed this Oct 31, 2024
@Mugen87 Mugen87 added this to the r171 milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants