尝试进一步优化
This commit is contained in:
@@ -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 的计算逻辑)
|
||||
|
||||
Reference in New Issue
Block a user