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

feat: sdk7 debug panel scene metrics #5980

Merged
merged 9 commits into from
Nov 29, 2023

Conversation

pravusjif
Copy link
Member

@pravusjif pravusjif commented Nov 26, 2023

Debug panel scene metrics were not implementet, now it's hooked up to the same datastore logic that SDK6 uses.

Issue: decentraland/sdk#1032


Copilot summary

🤖[deprecated] Generated by Copilot at a219ba6

This pull request adds a debug mode feature to the GltfContainer, Material, and MeshRenderer components. The debug mode allows these components to update the scene metrics data store with information about the loaded and unloaded assets. The pull request also refactors some classes to use fields instead of parameters and fixes some typos and inconsistencies. The pull request modifies several assembly definition files to add the necessary references to the DataStore and DebugConfig namespaces. The pull request also updates the tests to pass the debug config object to the constructors of the component handlers.


QA TEST INSTRUCTIONS

  1. Enter https://sdk-test-scenes.decentraland.zone/?NETWORK=mainnet&position=1%2C-2&SCENE_DEBUG_PANEL=&realm=LocalPreview&explorer-branch=feat/sdk7-debug-panel-scene-metrics
  2. Open the "SCENE" debug panel metrics
Screen Shot 2023-11-27 at 12 52 06
  1. Confirm that every time you spawn a new cube, the amount of Poly and Material increases
Screen Shot 2023-11-27 at 12 52 41

@pravusjif pravusjif self-assigned this Nov 26, 2023
@pravusjif pravusjif added No QA Needed Issues which do not require QA testing and removed No QA Needed Issues which do not require QA testing labels Nov 27, 2023
@pravusjif pravusjif requested a review from Kinerius November 27, 2023 12:03
@pravusjif pravusjif marked this pull request as ready for review November 27, 2023 12:03
@pravusjif pravusjif requested a review from a team as a code owner November 27, 2023 12:03
@pravusjif pravusjif removed the request for review from a team November 27, 2023 12:05
Copy link
Contributor

@Ludmilafantaniella Ludmilafantaniella left a comment

Choose a reason for hiding this comment

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

✅ Reviewed and approved by QA.

Screen.Recording.2023-11-27.at.09.39.34.mov

Copy link
Contributor

@Kinerius Kinerius left a comment

Choose a reason for hiding this comment

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

PR Looks ok, I left some comments for correctness but anyways I'm going to approve 👍

@pravusjif pravusjif merged commit 1d06975 into dev Nov 29, 2023
1 check passed
@pravusjif pravusjif deleted the feat/sdk7-debug-panel-scene-metrics branch November 29, 2023 01:57
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