diff options
| author | yum <yum.food.vr@gmail.com> | 2023-03-21 17:13:32 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-03-21 17:13:32 -0700 |
| commit | 1f15133dd985442af20d42a96fbcd0007f03bd2b (patch) | |
| tree | 15e32f494a1bab1c856f6c8561ed01e5bb436bf8 /Fonts | |
| parent | 656d7c2092545b18d981acfac000c73fb2128e4a (diff) | |
Reduce texture memory usage for English speakersv0.10.0
We used to populate 7 4k textures + 1 2k texture for all users.
Now if the user has configured `bytes_per_char=1` in the Unity
panel, we just populate a single 512x512 texture containing the
first 128 ASCII characters.
This reduces texture memory usage by 99.74%, from 134.67 MB to
340 KB.
Diffstat (limited to 'Fonts')
| -rw-r--r-- | Fonts/Bitmaps/font-0.png.meta | 2 | ||||
| -rw-r--r-- | Fonts/Bitmaps/font-ascii.png | bin | 0 -> 543838 bytes | |||
| -rw-r--r-- | Fonts/Bitmaps/font-ascii.png.meta (renamed from Fonts/Bitmaps/emotes.png.meta) | 22 |
3 files changed, 12 insertions, 12 deletions
diff --git a/Fonts/Bitmaps/font-0.png.meta b/Fonts/Bitmaps/font-0.png.meta index c0e5ef9..b70fd04 100644 --- a/Fonts/Bitmaps/font-0.png.meta +++ b/Fonts/Bitmaps/font-0.png.meta @@ -28,7 +28,7 @@ TextureImporter: cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 - maxTextureSize: 2048 + maxTextureSize: 4096 textureSettings: serializedVersion: 2 filterMode: 1 diff --git a/Fonts/Bitmaps/font-ascii.png b/Fonts/Bitmaps/font-ascii.png Binary files differnew file mode 100644 index 0000000..1a8ba99 --- /dev/null +++ b/Fonts/Bitmaps/font-ascii.png diff --git a/Fonts/Bitmaps/emotes.png.meta b/Fonts/Bitmaps/font-ascii.png.meta index 1e794cb..c6d24ff 100644 --- a/Fonts/Bitmaps/emotes.png.meta +++ b/Fonts/Bitmaps/font-ascii.png.meta @@ -1,18 +1,18 @@ fileFormatVersion: 2 -guid: 054057c5bf512e842854e6746e754159 +guid: 0417deb9fee97e24e9099569bed34c6c TextureImporter: internalIDToNameTable: [] externalObjects: {} serializedVersion: 11 mipmaps: mipMapMode: 1 - enableMipMap: 0 + enableMipMap: 1 sRGBTexture: 1 linearTexture: 0 fadeOut: 0 borderMipMap: 0 mipMapsPreserveCoverage: 1 - alphaTestReferenceValue: 0.5 + alphaTestReferenceValue: 0 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: @@ -21,22 +21,22 @@ TextureImporter: heightScale: 0.25 normalMapFilter: 0 isReadable: 0 - streamingMipmaps: 0 + streamingMipmaps: 1 streamingMipmapsPriority: 0 grayScaleToAlpha: 0 generateCubemap: 6 cubemapConvolution: 0 seamlessCubemap: 0 textureFormat: 1 - maxTextureSize: 2048 + maxTextureSize: 512 textureSettings: serializedVersion: 2 filterMode: 1 aniso: 1 mipBias: 0 - wrapU: 1 - wrapV: 1 - wrapW: 1 + wrapU: 0 + wrapV: 0 + wrapW: 0 nPOTScale: 1 lightmap: 0 compressionQuality: 100 @@ -61,7 +61,7 @@ TextureImporter: platformSettings: - serializedVersion: 3 buildTarget: DefaultTexturePlatform - maxTextureSize: 2048 + maxTextureSize: 512 resizeAlgorithm: 1 textureFormat: -1 textureCompression: 2 @@ -73,7 +73,7 @@ TextureImporter: forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Standalone - maxTextureSize: 2048 + maxTextureSize: 512 resizeAlgorithm: 1 textureFormat: -1 textureCompression: 2 @@ -85,7 +85,7 @@ TextureImporter: forceMaximumCompressionQuality_BC6H_BC7: 0 - serializedVersion: 3 buildTarget: Android - maxTextureSize: 2048 + maxTextureSize: 512 resizeAlgorithm: 1 textureFormat: -1 textureCompression: 2 |
