Texture sizes are 10x bigger in iOS builds from 6000.0.24f1 vs 2023.2.20f1
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- mobile-dev, performance
Hướng nghiên cứu
Bắt đầu với MemoryRepro.zip, model DamagedHelmet.glb và UnityGLTF importer, sau đó tái hiện các bản build iOS trong Unity 2023.2.20f1 và 6000.0.24f1 trên một Apple Silicon Mac. Chụp các snapshot của Memory Profiler cho cả hai bản build và so sánh các allocation của texture; hoàn thành có nghĩa là giải thích và sửa được regression khiến kích thước texture tăng gần 10 lần mà không ảnh hưởng đến hành vi của bản build trước đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug 💬
This project exported and ran fine in Unity 2023.2.20f1 on iOS running on an iPad Pro - when I updated it to Unity 6000.0.23f1 and also 6000.0.24f1, I noticed the allocated size of textures in the build in the memory profiler are nearly 10x the size of the textures in the build from Unity 2023.2.20f1.
I have cross checked this doesn't happen with textures linked to obj, dae or fbx files imported into Unity and this only is happening with .glb files.
I have a small repro project here using the DamagedHelmet.glb example file from the Khronos GLTF sample models repo where I opened it in Unity 2023.2.20f1, built to test then opened it in Unity 6000.0.24f1 without changing anything built and tested it to cross reference this - See size differences of the DamagedHelmet.glb textures.
Unity 2023.2.20f1
Unity 6000.0.24f1 LTS
Steps to reproduce 🔢
- Download the attached project from the repro files below, open in Unity 2023.2.20f1 as build target iOS on Silicon Mac Editor (not intel)
- On Models > DamagedHelmet, ensure UnityGLTF is the importer for the model
- Build and run it on iOS to a device like an ipad Pro as development build with auto link profiler on
- In Memory Profiler, grab a memory snapshot of the running build
- Repeat the steps above with Unity 6000.0.24f1 as build target iOS on Silicon Mac Editor (not intel)
- Compare the memory snapshots
Files to reproduce the issue ♻
Editor Version 🎲
6000.0
Render Pipeline and version
URP 16.0.6
UnityGLTF Version
2.14.0 & 2.14.1 tested
Operating System 👩💻
macOS, iOS
When does this problem happen?
- Editor Import
- Runtime Import
- Editor Export
- Runtime Export
Additional Info 📜
No response
Validations 🩹
- I have searched existing issues: no issue already exist that reports the same problem.
- I follow the Code of Conduct
- I provided a minimal reproducible example, including files when necessary.
- Ngôn ngữ chính
- C#
- Star
- 2.3k
- Fork
- 539
- Merge trung bình
- 3 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 KhronosGroup/UnityGLTF
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
KhronosGroup/UnityGLTF#911 · 6 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
KhronosGroup/UnityGLTF#894 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
KhronosGroup/UnityGLTF#893 · 1 bình luận ·
-
Vertex reordering after importĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
KhronosGroup/UnityGLTF#890 · 3 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
KhronosGroup/UnityGLTF#889 · 1 bình luận ·
Tất cả issue của KhronosGroup/UnityGLTF
Issue tương tự
-
launcher item missingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Realm667/WolfenDoom#1758 ·
-
SDK version compatibility issueĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
AI documentation good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Keboo/SimplyBudget#334 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày