Texture sizes are 10x bigger in iOS builds from 6000.0.24f1 vs 2023.2.20f1
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Domínio
- mobile-dev, performance
Direção de pesquisa
Comece com MemoryRepro.zip, o modelo DamagedHelmet.glb e o UnityGLTF importer; em seguida, reproduza os builds de iOS no Unity 2023.2.20f1 e 6000.0.24f1 em um Apple Silicon Mac. Capture snapshots do Memory Profiler para ambos os builds e compare as alocações de texturas; considera-se concluído quando a regressão de quase 10 vezes no tamanho das texturas tiver sido explicada e corrigida sem afetar o comportamento do build anterior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C#
- Estrelas
- 2.3k
- Forks
- 539
- Merge médio
- 3d 15h
- PRs com merge (30d)
- 2
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de KhronosGroup/UnityGLTF
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
KhronosGroup/UnityGLTF#911 · 6 comentários ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
KhronosGroup/UnityGLTF#894 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
KhronosGroup/UnityGLTF#893 · 1 comentário ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 38/100
KhronosGroup/UnityGLTF#890 · 3 comentários ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
KhronosGroup/UnityGLTF#889 · 1 comentário ·
Todas as issues de KhronosGroup/UnityGLTF
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
-
good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
AcceptEncodingWireTests fail on Windows, 15 of 16, with a connection resetTalvez já em andamento @enigmatic-postulate assumiu hoje. Abertabug tests
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ClickHouse/clickhouse-cs#779 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
launcher item missingAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Realm667/WolfenDoom#1758 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100