mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 03:23:24 +00:00
Refactor rendering and throttle based on backlog
- Refactor rendering and metrics emission in ClientGameRunner to ensure updates occur only after all processing is complete - Throttle renderGame() based on the current backlog
This commit is contained in:
@@ -136,6 +136,13 @@ export class TickMetricsEvent implements GameEvent {
|
||||
) {}
|
||||
}
|
||||
|
||||
export class BacklogStatusEvent implements GameEvent {
|
||||
constructor(
|
||||
public readonly backlogTurns: number,
|
||||
public readonly backlogGrowing: boolean,
|
||||
) {}
|
||||
}
|
||||
|
||||
export class InputHandler {
|
||||
private lastPointerX: number = 0;
|
||||
private lastPointerY: number = 0;
|
||||
|
||||
Reference in New Issue
Block a user