Fix header fps calc display inf value & behavior search with lowercase

This commit is contained in:
2022-04-01 15:40:53 +08:00
parent a40bbd7cf6
commit f020e44f47
2 changed files with 9 additions and 2 deletions
+3
View File
@@ -40,6 +40,9 @@ class HeaderBar extends Component<
private createFpsCalc(type: "renderFps" | "physicsFps") {
return (t: number) => {
if (t === 0) {
return;
}
let newState: HeaderBarState = {} as any;
newState[type] = 1 / t;
if (this.updateTime > 20) {