* Get color style based on FPS value.
(fps: number)
| 107 | * Get color style based on FPS value. |
| 108 | */ |
| 109 | function getFpsStyle(fps: number): TextStyle { |
| 110 | if (fps >= 55) return GOOD_STYLE; |
| 111 | if (fps >= 30) return WARN_STYLE; |
| 112 | return ERROR_STYLE; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Get color style based on frame time. |
no outgoing calls
no test coverage detected