Repository navigation
Commit 9e2fa9c
committed
Keep pre-mounting within half of a 30 Hz frame
A display the system slows below 60 Hz can spend more of each frame
pre-mounting, so the ceiling is now half of a 30 Hz frame (16.67 ms)
rather than half of a 60 Hz one: from 30 Hz up the budget is half of the
display's frame, and below 30 Hz it is 16.67 ms. A display that reports
no refresh rate is still budgeted as a 60 Hz one.1 parent 3d780fb commit 9e2fa9c
2 files changed
Lines changed: 30 additions & 14 deletions
File tree
- packages/react-native/ReactAndroid/src
- main/java/com/facebook/react/fabric/mounting
- test/java/com/facebook/react/fabric/mounting
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | | - | |
347 | | - | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| |||
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| 440 | + | |
| 441 | + | |
438 | 442 | | |
439 | | - | |
440 | | - | |
| 443 | + | |
| 444 | + | |
441 | 445 | | |
442 | | - | |
| 446 | + | |
443 | 447 | | |
444 | 448 | | |
445 | 449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| |||
0 commit comments