6ZQLWGVLAEJ7K5KEELYJHBW24MS7CUYUP3PU4F5CDWZ7ZMEPU6JQC
KMXBQVJSTSU46WB6IYGNWNMXKIVAMIHILKCDQVD3E76YDR2TCZNAC
QUT2VGNOS2XSDLSYCSMILCKF343M56MRPRSUWN4GXWPGCK6APK2QC
FEYZALRNZQFN7QWCJGGTHHAYUN2OSSWD7SITQMOZIGQFUMWRFFCQC
L4VMIGM6D5WUEBYOCXBIF6V66NRJAKOJO4FHALHIUIAGAUQUKDPAC
ZCLRDJQVS733WMBOJEPQR7YLZNHVA7HRPXO3XCIOFCQWNGI6PGYQC
3UFL673QX2JG7KHTAM7DFH4BBYVHDNMXBS2RW45G3JBNFZFLSRRQC
6ZGB7JZJ4EWDELXAENEHRNNJZB2EK7E7BEKNPK34MJL75DOPJNPAC
export class FpsComponent {
// constructor(props: Props) {
// this.container = new Pixi.Text('', {
// fontFamily: 'PixelMix',
// fontSize: 12,
// // align: 'right'
// });
// this.state = {
// fpsTracker: new FpsTracker()
// };
// this.staleProps = props;
// this.renderSelf(props)
// }
// public update(props: Props) {
// this.updateSelf(props);
// this.renderSelf(props);
// }
// updateSelf(props: Props) {
// this.state.fpsTracker.tick(props.delta);
// }
// renderSelf(props: Props) {
// this.container.text = this.state.fpsTracker.getFpsString() + " FPS\n" +
// this.state.fpsTracker.getUpsString() + " UPS\n" +
// props.appSize.x + "x" + props.appSize.y;
// this.container.position = PixiPointFrom(props.position);
// }
// }
class FpsComponent extends LifecycleHandlerBase<Props, State> {
updateSelf(props: FpsComponentProps) {
this.state.tick(props.delta);
}
renderSelf(props: FpsComponentProps) {
this.container.text = this.state.getFpsString() + " FPS\n" + this.state.getUpsString() + " UPS\n" +
protected renderSelf(props: Props) {
this.container.text = this.state.fpsTracker.getFpsString() + " FPS\n" +
this.state.fpsTracker.getUpsString() + " UPS\n" +