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

Aperta
#795 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp, ios, unity

Direzione di ricerca

Inizia con MemoryRepro.zip, il modello DamagedHelmet.glb e il UnityGLTF importer, quindi riproduci le build iOS in Unity 2023.2.20f1 e 6000.0.24f1 su un Apple Silicon Mac. Acquisisci snapshot di Memory Profiler per entrambe le build e confronta le allocazioni delle texture; il lavoro è completato quando la regressione della dimensione delle texture di quasi 10 volte è stata spiegata e corretta senza influire sul comportamento della build precedente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 🩹
Lingua principale
C#
Stelle
2.3k
Fork
539
Merge medio
3g 15h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KhronosGroup/UnityGLTF

Tutte le issue di KhronosGroup/UnityGLTF

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.