Skip to content

Implement internal/gamelogic/loop.go (fixed‐tick loop) #9

@justintulloch

Description

@justintulloch

• Every 20 ms (50 Hz), call PullAll(matchID) via HTTP GET.

• For each InputEvent, update a simple map[string][2]float64 position (toy physics: move_forwardy += 0.1, etc.).

• Build a WorldState{ Tick, Positions, Timestamp }.

• Serialize via Gob into a byte buffer.

• Send the buffer via UDP to localhost:50000.

• Expose Prometheus histogram gameserver_tick_duration_ms and counter gameserver_inputs_processed_total.

Metadata

Metadata

Assignees

Labels

backendServer-side logic, APIs, and core business functionalitymetricsInstrumentation, telemetry, and collection of usage or performance dataphysicsPhysics engine logic, simulations, or math-heavy algorithmsserviceMicroservice implementations or service–service integration work

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions