Texture sizes are 10x bigger in iOS builds from 6000.0.24f1 vs 2023.2.20f1
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
- Domaine
- mobile-dev, performance
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
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.
- Langage dominant
- C#
- Étoiles
- 2.3k
- Forks
- 539
- Merge moyen
- 3 j 15 h
- PR mergées (30 j)
- 2
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de KhronosGroup/UnityGLTF
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
KhronosGroup/UnityGLTF#911 · 6 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
KhronosGroup/UnityGLTF#894 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
KhronosGroup/UnityGLTF#893 · 1 commentaire ·
-
Vertex reordering after importOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
KhronosGroup/UnityGLTF#890 · 3 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
KhronosGroup/UnityGLTF#889 · 1 commentaire ·
Toutes les issues de KhronosGroup/UnityGLTF
Issues similaires
-
launcher item missingOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Realm667/WolfenDoom#1758 ·
-
SDK version compatibility issueOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
-
AI documentation good first issue help wanted
Difficulté 1/5 1-3 heures Accessibilité débutants 84/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Keboo/SimplyBudget#334 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 1 jour