Texture sizes are 10x bigger in iOS builds from 6000.0.24f1 vs 2023.2.20f1

Aberta
#795 9 comentários 0 reações 0 responsáveis Ver no GitHub

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
Stack de tecnologia
csharp, ios, unity

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
Screenshot 2024-10-29 at 2 29 42 pm

Unity 6000.0.24f1 LTS
Screenshot 2024-10-29 at 2 29 51 pm

Steps to reproduce 🔢
  1. 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)
  2. On Models > DamagedHelmet, ensure UnityGLTF is the importer for the model
  3. Build and run it on iOS to a device like an ipad Pro as development build with auto link profiler on
  4. In Memory Profiler, grab a memory snapshot of the running build
  5. Repeat the steps above with Unity 6000.0.24f1 as build target iOS on Silicon Mac Editor (not intel)
  6. Compare the memory snapshots
Files to reproduce the issue ♻

MemoryRepro.zip

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 🩹
Linguagem predominante
C#
Estrelas
2.3k
Forks
539
Merge médio
3d 15h
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de KhronosGroup/UnityGLTF

Todas as issues de KhronosGroup/UnityGLTF

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.