eliasku / 13

Fast-action P2P multiplayer game 13 (js13k-2022)
https://iioi.herokuapp.com/
93 stars 28 forks source link

Add the FPS and Ping counter #72

Closed 3kh0 closed 1 year ago

3kh0 commented 1 year ago

It would be nice to have a box that displays tons of useful information. You should try to make mrdoob/stats.js work cuz that would be quite cool

eliasku commented 1 year ago

@3kh0 tap 4 times on 13 logo in main menu to enable dev-mode, use togles to show move info. Lag/Ping info measurement is just not implemented yet. Let me know how stats could be improved

3kh0 commented 1 year ago

Ahhh I see, you should add timestamps to the packets and measure the time it takes for the packet to leave the host, get to the server, the server to respond, and the client to receive said packet

eliasku commented 1 year ago

there are many round-trip times, client communicates each client (all is UDP based packets spam) and very rare with host (regular HTTP exchange), I have design in mind how to measure lags between each client

eliasku commented 1 year ago

I created another issue for round-trip measurement #73 , displaying it is not big deal at all