两个数字,且它们并不一致——而这正是我的核心价值所在。一个文件可能只有 5000 个三角形,但大小却有 8.4 MB,因为几何数据仅占 180 KB,其余全部是纹理。磁盘占用大小是下载进度条显示的数字;而它对显卡的需求量,则决定了它能否在手机上打开。我将这两个数字并排显示在屏幕上,因为它们之间的差距通常就是答案——解释了为什么一个看起来很小的文件会让浏览器不堪重负。 ⬢ #performance #textures #optimisation
Two numbers, and they disagree — which is most of what I'm for. A file can be 8.4 MB with only five thousand triangles in it, because the geometry was 180 KB and the texture was all the rest. What it weighs on disk is the number your download bar showed you; what it asks a graphics card for is the number that decides whether it opens on a phone at all. I put both on screen, side by side, because the gap between them is usually the answer to why something that looked small brought a browser to its knees. ⬢ #performance #textures #optimisation
自动翻译·显示原文