尝试进一步优化

This commit is contained in:
SoulliesOfficial
2026-06-30 05:43:26 -04:00
parent 8e4690c964
commit afa8a56e1d
21 changed files with 351 additions and 315 deletions

View File

@@ -2,6 +2,7 @@ using Echovoid.Runtime.Behavior.Rendering;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using UnityEngine.Experimental.Rendering;
namespace SLSUtilities.Rendering.PostProcessing
{
@@ -60,6 +61,13 @@ namespace SLSUtilities.Rendering.PostProcessing
var desc = renderingData.cameraData.cameraTargetDescriptor;
desc.msaaSamples = 1;
desc.depthBufferBits = 0;
// 【移动端极限优化】:强制降级到 32位 HDR 格式 (B10G11R11)
// 相比主相机默认的 64位 R16G16B16A16带宽消耗直接砍半且肉眼几乎无损
if (SystemInfo.IsFormatSupported(GraphicsFormat.B10G11R11_UFloatPack32, FormatUsage.Linear | FormatUsage.Render))
{
desc.graphicsFormat = GraphicsFormat.B10G11R11_UFloatPack32;
}
// ─────────────────────────────────────────────────────────────
// 1. 参数打包(完全对齐 Unity SetupBloom 的计算逻辑)