Skip to content

Commit

Permalink
Time how long measure takes
Browse files Browse the repository at this point in the history
  • Loading branch information
curiousdannii committed Oct 24, 2024
1 parent c9f9e13 commit 9b61e32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/glkote/web/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export default class Metrics {
this.observer = new ResizeObserver(this.on_gameport_resize)
this.observer.observe(this.glkote.dom.gameport()[0])
}
else {
//else {
$(window).on('resize', this.on_gameport_resize)

Check failure on line 67 in src/glkote/web/metrics.ts

View workflow job for this annotation

GitHub Actions / test (Node v18)

Expected indentation of 8 spaces but found 12

Check failure on line 67 in src/glkote/web/metrics.ts

View workflow job for this annotation

GitHub Actions / test (Node v20)

Expected indentation of 8 spaces but found 12
}
//}
if (visualViewport) {
$(visualViewport).on('resize', this.on_visualViewport_resize)
}
Expand Down Expand Up @@ -173,6 +173,7 @@ export default class Metrics {
this.on_gameport_resize()
return
}
this.glkote.warning('on_gameport_resize')
const oldmetrics = Object.assign({}, this.metrics)
await this.measure()
if (metrics_differ(this.metrics, oldmetrics)) {
Expand Down

0 comments on commit 9b61e32

Please sign in to comment.