Issue with client-desync in relation to server-ticking:
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- backend, networking, performance
Hướng nghiên cứu
Theo dõi đường đi của packet xung quanh các entry point .executeTick(), .handle và .genericsFtw đã nêu, sau đó tái hiện hành vi timing bằng cách logging theo mili giây như mô tả. Công việc được xem là hoàn tất khi việc xử lý packet không còn thêm một tick độ trễ có thể tránh được, với coverage hồi quy hoặc các phép đo chứng minh thay đổi này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Expected behavior
The expected behavior is so that when the client sends packets, they get processed "immediately", currently what Folia does for every single packet is schedule each packet as a new task, for 1L. If you notice a simple debug, (I have done this) - The time between the packets arrive and get processed should be "instantly" - this is not really a vanilla only thing, but this affects PVP overall and other actions that players would notice a 50ms latency on their action, SPECIALLY if they have a low ping too.
Observed/Actual behavior
Tt really depends on how the player client ticking is also aligned and their ping, while on a paper jar, this won't happen because when the packet arrives it gets processed, the packets are delayed by one tick from when they arrive, and they don't get processed "instantly", they only get processed on the .executeTick() method, this is causing extra delays on actions overall, specially combat in survival.
Steps/models to reproduce
log System Millis of every single packet on the .genericsFtw, and on the ensure same thread that will make the runnable process, observe the behavior of when the .handle method gets called, this will show the latency issue.
I also noticed that the latency of processing of the packets, depends on how fast/ or the timing of in which the regions are created (I am not fully sure if this is because of region creation). - I am able to notice a difference upon restarting it though, sometimes less latency, sometimes high latency.
Plugin and Datapack List
No plugins nor data packets
Folia version
[12:28:35 INFO]: This server is running Folia version git-Folia-"8939611" (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 8939611 on dev/1.20.4)
You are running the latest version
Previous version: git-Folia-"30ee81a" (MC: 1.20.2)
Other
No response
- Ngôn ngữ chính
- Shell
- Star
- 4.7k
- Fork
- 651
- Merge trung bình
- 10 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PaperMC/Folia
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
status: needs triage type: bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
status: needs triage type: performance
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
status: needs triage type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
status: needs triage type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Tất cả issue của PaperMC/Folia
Issue tương tự
-
agent:WSL bug code-review linux parity performance pri:medium sev:low tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
mgradwohl/tasksmack#4221 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sno-ai/sno-station#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/os-image bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dsx-ai-factory/nvke#2375 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
not-bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
termux/termux-packages#33463 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cicd
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nolte/kamerplanter-appliance#53 ·
Maintainer thường phản hồi trong vòng 1 ngày