NetworkTransform Performance Issue in Large Scenes
Maintainer thường phản hồi trong vòng 3 ngày
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
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- networking, performance
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề trong một dự án Unity 2021.3.12f1 với khoảng 500 component NetworkTransform và kiểm tra profiler trong một build. So sánh chi phí đồng bộ transform với một biến mạng Matrix4x4 được đồng bộ, sau đó xác định liệu đường dẫn cập nhật của NetworkTransform có thể được xử lý theo lô hoặc chuyển sang Job System hay không; được xem là hoàn thành khi overhead ở trạng thái ổn định giảm đáng kể.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
The Network Transform component is significantly more expensive than necessary. I suspect this is due to its lack of batching or usage of the Job System. It might be possible to move most, if not all, the logic into a burst compiled job.
Reproduce Steps
- Build a new project with netcode
- Add ~500 network transforms
- Observe profiler in build

Expected Outcome
Executing the syncing of the transforms should incur a time cost on par with simply using a synced network variable of a matrix4x4
Actual Outcome
Considerable performance losses, possibly due to Update overhead
Details
Unity Version 2021.3.12f1
Netcode Version 1.2.0
Transport Version 1.3.0
Additional Thoughts
Im working on a fairly large simulation project, and am using NGO for sharing said data. As such, I have between 500 and 1000 network transforms for syncing simulation data between clients. The profiling data above is after the simulation settles, so the only network messages been sent are heartbeat.
After doing my own deep dive into the network transform, I noticed that the work it was doing wasn't batched. It might be possible to use the job system to deal with these transforms, thus allowing a much larger cap on the amount of synced network objects in a scene.
Sadly, until the performance of the network transform is improved, I'm going to have to attempt to implement my own version of the network transform.
- Ngôn ngữ chính
- C#
- Star
- 2.3k
- Fork
- 465
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 39
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 Unity-Technologies/com.unity.netcode.gameobjects
-
TimeSyncMessage is sent reliably, so a late one resets the client clock backwards and stalls its NetworkTransformsCó thể đã có người làm @reginaldalfret đã nhận 8 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Unity-Technologies/com.unity.netcode.gameobjects#4249 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
NetworkTransform: half-float base update dropped as out of order when UseUnreliableDeltas is on, so later deltas decode ~2 m offCó thể đã có người làm @NoelStephensUnity đã nhận 8 ngày trước. Đang mởport:3.x-completed priority:medium stat:imported type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
Unity-Technologies/com.unity.netcode.gameobjects#4248 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Tracking type:feature-2.x
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Unity-Technologies/com.unity.netcode.gameobjects#3870 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Please error, or at least warn, when a managed type is included in INetworkSerializeByMemcpyĐang mởTracking type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Unity-Technologies/com.unity.netcode.gameobjects#3830 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
priority:medium stat:imported type:feature type:feature-2.x
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Unity-Technologies/com.unity.netcode.gameobjects#3706 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của Unity-Technologies/com.unity.netcode.gameobjects
Issue tương tự
-
hand-to-AI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
CactuseSecurity/firewall-orchestrator#5803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Typed MINID rejects numeric thresholds with a leading plus sign accepted by Redis and ValkeyĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
DXF with empty names failsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug python
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ilia-sokolov/OfficeAgent.NET#89 ·
Maintainer thường phản hồi trong vòng 13 ngày