Skip to content

Commit

Permalink
Update render-worker.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Razvan1928 committed Feb 23, 2024
1 parent 4c3af0a commit 54062fa
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { HealthStatus, healthStatus } from './health-status';
export class RenderWorker {
private worker!: number;
private dieMatrix: Uint8Array = Uint8Array.from([]);
private performanceTest: string | undefined;
private healthStatus: HealthStatus = healthStatus.unknown;

constructor() {
Expand All @@ -17,11 +16,7 @@ export class RenderWorker {
public updateMatrix(
data: Iterable<number>
): void {
const start = this.performanceTest !== undefined ? self.performance.now() : undefined;
this.dieMatrix = Uint8Array.from(data);
if (this.performanceTest !== undefined) {
self.performance.measure(`${this.performanceTest} - worker:${this.worker} - renderDies`, { start });
}
}

public areMethodsCallable(): boolean {
Expand Down

0 comments on commit 54062fa

Please sign in to comment.