Skip to content

Commit

Permalink
fix debug callback of LogViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed May 6, 2019
1 parent 5d4f90e commit ab1a457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/core/src/components/log-viewer/core-3d-viewer.js
Expand Up @@ -155,13 +155,13 @@ export default class Core3DViewer extends PureComponent {
_onMetrics = deckMetrics => {
if (this.props.debug) {
const metrics = {
fps: deckMetrics.fps,
redraw: deckMetrics.redraw || 0
fps: deckMetrics.frameRate.hz,
redraw: deckMetrics['Redraw Count'].count
};
const table = stats.getTable();

for (const key in table) {
metrics[key] = table[key].total;
metrics[key] = table[key].count;
}
this.props.debug(metrics);
}
Expand Down

0 comments on commit ab1a457

Please sign in to comment.