-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid showing the bounding box when the scene is still loading a…
…ssets (#906) * fix: Avoid showing the bounding box when the scene is still loading assets * feat: add tests for EcsEntity class * feat: Add a new method isOutOfBoundaries to EcsEntities * feat: Add a new sceneMetrics rpc * feat: Add a sceneMetrics state * feat: Update Metrics component to use the new sceneMetrics state * feat: Add tests * feat: export scene-metrics rpc * fix: Remove unused import * refactor: get scene nodes
- Loading branch information
Showing
11 changed files
with
373 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/@dcl/inspector/src/lib/rpc/scene-metrics/client.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { RPC, Transport } from '@dcl/mini-rpc' | ||
import { SceneMetricsRPC } from './types' | ||
|
||
export class SceneMetricsClient extends RPC<SceneMetricsRPC.Method, SceneMetricsRPC.Params, SceneMetricsRPC.Result> { | ||
constructor(transport: Transport) { | ||
super(SceneMetricsRPC.name, transport) | ||
} | ||
|
||
getMetrics = () => { | ||
return this.request(SceneMetricsRPC.Method.GET_METRICS, undefined) | ||
} | ||
|
||
getLimits = () => { | ||
return this.request(SceneMetricsRPC.Method.GET_LIMITS, undefined) | ||
} | ||
|
||
getEntitiesOutOfBoundaries = () => { | ||
return this.request(SceneMetricsRPC.Method.GET_ENTITIES_OUT_OF_BOUNDARIES, undefined) | ||
} | ||
} |
Oops, something went wrong.