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 {
244244 }
245245
246246 // 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 ] ] ;
248248
249249 // Store the last valid result
250250 this . lastValue = totalDuration ;
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ class WebGPUTimestampQueryPool extends TimestampQueryPool {
209209 }
210210
211211 // 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 ] ] ;
213213
214214 this . resultBuffer . unmap ( ) ;
215215 this . lastValue = totalDuration ;
You can’t perform that action at this time.
0 commit comments