Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target Lag Speeds (how to rank and improve latency) #247

Closed
WithinAmnesia opened this issue Feb 11, 2024 · 2 comments
Closed

Target Lag Speeds (how to rank and improve latency) #247

WithinAmnesia opened this issue Feb 11, 2024 · 2 comments

Comments

@WithinAmnesia
Copy link

WithinAmnesia commented Feb 11, 2024

The target for lag on my end should be ~99 ms or under for I am on the other side of the world from Germany (~9 hour time difference from berlin time to vancouver time) and I have starlink satellite internet with ~19-21 ms of lag.

Targets:
0-9 ms - extraordinary
10-99 ms - great
100-199 ms - excellent
200-299 ms - good
300-399 ms - okay
400-499 ms - bad
500-599 ms - horrible
600-699 ms - abysmal
700-799 ms - nightmare
800-899 ms - unplayable
900-999 ms - 4D chess
1.0-1.9 seconds - turn based games
2.0-2.9 seconds - text based games
3.0-3.9 seconds - non-interactive games
4.0-4.9 seconds - reading text and using imagination
5.0-5.9 seconds - shooting in the dark
6.0-6.9 seconds - did it even work nice?
7.0-7.9 seconds - I don't think it works, oh there it is?
8.0-8.9 seconds - What is going on?
9.0-9.9 seconds - Is this disconnected or?
10+ seconds - Yep its broken lol.

Currently firefox is:
5.0-5.9 seconds - shooting in the dark
6.0-6.9 seconds - did it even work nice?
7.0-7.9 seconds - I don't think it works, oh there it is?
8.0-8.9 seconds - What is going on?

Currently chrome is:
900-999 ms - 4D chess
1.0-1.9 seconds - turn based games
2.0-2.9 seconds - text based games
3.0-3.9 seconds - non-interactive games
4.0-4.9 seconds - reading text and using imagination
5.0-5.9 seconds - shooting in the dark

Currently the client locally hosted is:
500-599 ms - horrible
600-699 ms - abysmal
700-799 ms - nightmare
800-899 ms - unplayable
900-999 ms - 4D chess
1.0-1.9 seconds - turn based games
2.0-2.9 seconds - text based games
3.0-3.9 seconds - non-interactive games

Feedback is welcome. https://jonathaneeckhout.itch.io/jdungeon and https://github.com/jonathaneeckhout/jdungeon (main branch) were used for combat and camp testing. Both were tested with at least 2 clients open at various times and the results were about the same. More faster responses to combat are needed for online shooters and action games work good so I think a 2D ARPG / MMORPG should be doable within:
Targets:
0-9 ms - extraordinary
10-99 ms - great
100-199 ms - excellent
200-299 ms - good

@WithinAmnesia
Copy link
Author

From discord archiving:
"Matthew — Today at 09:29
godotengine/godot#86234 hey
GitHub
TCP_NODELAY is disabled by default in WebSocket communication in ...
Tested versions Reproducible in Godot 4.1, 4.2.1 System information Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org Vulkan API 1.3.236 - Forward+ - Using Vulkan Device #0: N...

Matthew — Today at 09:37
https://forum.godotengine.org/t/the-game-lagging-after-exported-to-the-web-html/41347/19?page=2
Godot Forum
The game lagging after exported to the Web (.HTML)
yeah, godot’s issue i wanted to recommend other engine that’s far better just for making web games, but i dont think it’s allowed here lol i merely using export to web just for easily accessible way of testing for many people, but not building actual game for web which godot’s web is not optimized. Memory Usage alone took over 220mb on chrome ...

[09:42]
https://stylemistake.itch.io/intellispherethis godot 4 game works without lots of lag on the web maybe ask them if theyb have some advice?

Matthew — Today at 09:48
hmmmm I can't find the github for it (edited)

Matthew — Today at 09:56
https://www.reddit.com/r/godot/comments/qetf5l/why_is_it_when_i_export_to_html5_the_version_is/
https://www.reddit.com/r/godot/comments/137ylj1/html_export_terrible_performance_godot_4/
godotengine/godot#70691
godotengine/godot#87843
https://www.reddit.com/r/godot/comments/17eirub/godot_being_laggy/
https://godotforums.org/d/32231-massive-lag-when-running-on-itchio
godotengine/godot#86913
https://godotforums.org/d/30037-godot-exported-for-web-is-slow
https://www.quora.com/Why-does-the-game-lag-after-exporting-to-the-web-HTML-from-Godot-4 (edited)

Matthew — Today at 10:03
https://support.mozilla.org/en-US/kb/performance-settings?as=u&utm_source=inproduct might help fire fox with hardware acceleration
https://jamcity.helpshift.com/hc/en/6-genies-and-gems/faq/5737-how-do-i-enable-hardware-acceleration-on-my-browser/

Mawakajaka — Today at 10:08
Nice! I will definitely read these posts, thx

Matthew — Today at 10:08
hardware acceleration works to improve firefox with initial testing it seems to be within 700-799 ms to 1.0-1.9 second ms range"

Currently firefox with hardware acceleration is:
700-799 ms - nightmare
800-899 ms - unplayable
900-999 ms - 4D chess
1.0-1.9 seconds - turn based games

This is a massive improvement over the previous:
"Currently firefox [without hardware acceleration] is:
5.0-5.9 seconds - shooting in the dark
6.0-6.9 seconds - did it even work nice?
7.0-7.9 seconds - I don't think it works, oh there it is?
8.0-8.9 seconds - What is going on?"

It is a night and day upgrade for performance.

@WithinAmnesia
Copy link
Author

WithinAmnesia commented Feb 12, 2024

The current (12th / 02 (February) / 2024) main branch runs great with 50-120ms ~80-90 ms of latency lag with some spikes of no higher than 199-200 ms ish with multiple clients (2 tested so far).
I would say the latency lag is
Currently Firefox and Chrome Browsers with hardware acceleration are about the same:
Targets (~80-90ms)
10-99 ms - great
100-199 ms - excellent
This is a really thomping success!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant