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

Ouverte
#795 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
42/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
csharp, ios, unity

Piste de recherche

Commencez par MemoryRepro.zip, le modèle DamagedHelmet.glb et le UnityGLTF importer, puis reproduisez les builds iOS dans Unity 2023.2.20f1 et 6000.0.24f1 sur un Apple Silicon Mac. Capturez des instantanés de Memory Profiler pour les deux builds et comparez les allocations de textures ; la tâche est terminée lorsque la régression de la taille des textures, qui est presque multipliée par 10, est expliquée et corrigée sans affecter le comportement du build précédent.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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 🩹
Langage dominant
C#
Étoiles
2.3k
Forks
539
Merge moyen
3 j 15 h
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de KhronosGroup/UnityGLTF

Toutes les issues de KhronosGroup/UnityGLTF

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.