mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-18 05:41:56 +01:00
Moves frame dropping logs from 20ms to 33ms give than many videos make the UI run at 30fps
This commit is contained in:
parent
e578327c5b
commit
bc6d5060cb
@ -183,7 +183,8 @@ object ChoreographerHelper {
|
||||
return
|
||||
}
|
||||
val diff = (frameTimeNanos - lastFrameTimeNanos) / 1000000
|
||||
if (diff > 20) {
|
||||
// only report after 30ms because videos play at 30fps
|
||||
if (diff > 35) {
|
||||
// Follow the frame number
|
||||
val droppedCount = (diff / 16.6).toInt()
|
||||
Log.w("block-canary", "Dropped $droppedCount frames. Skipped $diff ms")
|
||||
|
Loading…
x
Reference in New Issue
Block a user