WriteValuePacked Bug
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- networking
调研方向
从 WriteValuePacked API 开始,使用 test runner 重现 float 情况。检查 float-to-uint 转换和 packed serialization 的行为;当确定当前字节数的原因,并且有一个可复现的测试验证预期的序列化大小时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description
Hello,I find when use the WriteValuePacked api to pack a float value, it will convert the float to uint.Due to the storage format of the float the convert value will bigger than 1 << 29,which can lead to the result of using 5 bytes to serialize the float,so can you tell me the reason why we convert the float to uint.
Reproduce Steps
Use the test runner to pack the float number.
Actual Outcome
Lead to the result of using 5 bytes to serialize the float.
Expected Outcome
Use less than 4 bytes to serialize the float.
Screenshots
- 主要语言
- C#
- 星标
- 2.3k
- 派生
- 465
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 39
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Unity-Technologies/com.unity.netcode.gameobjects 的其他 Issue
-
TimeSyncMessage is sent reliably, so a late one resets the client clock backwards and stalls its NetworkTransforms可能已有人在做 @reginaldalfret 于 8 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 52/100
Unity-Technologies/com.unity.netcode.gameobjects#4249 ·
维护者通常 3 天内回复
-
NetworkTransform: half-float base update dropped as out of order when UseUnreliableDeltas is on, so later deltas decode ~2 m off可能已有人在做 @NoelStephensUnity 于 8 天前认领。 未关闭port:3.x-completed priority:medium stat:imported type:bug
难度 4/5 3-5 天 新手友好度 57/100
Unity-Technologies/com.unity.netcode.gameobjects#4248 ·
维护者通常 3 天内回复
-
Tracking type:feature-2.x
难度 5/5 一周以上 新手友好度 35/100
Unity-Technologies/com.unity.netcode.gameobjects#3870 · 5 条评论 ·
维护者通常 3 天内回复
-
Tracking type:feature
难度 4/5 3-5 天 新手友好度 48/100
Unity-Technologies/com.unity.netcode.gameobjects#3830 · 7 条评论 ·
维护者通常 3 天内回复
-
priority:medium stat:imported type:feature type:feature-2.x
难度 4/5 3-5 天 新手友好度 42/100
Unity-Technologies/com.unity.netcode.gameobjects#3706 · 5 条评论 ·
维护者通常 3 天内回复
查看 Unity-Technologies/com.unity.netcode.gameobjects 的全部 Issue
相似的 Issue
-
hand-to-AI
难度 2/5 1-3 小时 新手友好度 72/100
CactuseSecurity/firewall-orchestrator#5803 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 3 天内回复
-
bug python
难度 1/5 1 小时以内 新手友好度 88/100
ilia-sokolov/OfficeAgent.NET#89 ·
维护者通常 13 天内回复