File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ class WebGLTimestampQueryPool extends TimestampQueryPool {
244
244
}
245
245
246
246
// Return the total duration of the last frame
247
- const totalDuration = framesDuration [ this . frames [ this . frames . length - 1 ] ] ;
247
+ const totalDuration = framesDuration [ frames [ frames . length - 1 ] ] ;
248
248
249
249
// Store the last valid result
250
250
this . lastValue = totalDuration ;
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ class WebGPUTimestampQueryPool extends TimestampQueryPool {
209
209
}
210
210
211
211
// Return the total duration of the last frame
212
- const totalDuration = framesDuration [ this . frames [ this . frames . length - 1 ] ] ;
212
+ const totalDuration = framesDuration [ frames [ frames . length - 1 ] ] ;
213
213
214
214
this . resultBuffer . unmap ( ) ;
215
215
this . lastValue = totalDuration ;
You can’t perform that action at this time.
0 commit comments