Skip to content

Commit

Permalink
Update setvram.lua
Browse files Browse the repository at this point in the history
test, 4000 streaming pool prevents crashes entering dogtown
  • Loading branch information
robber804 authored Nov 20, 2024
1 parent cdd58aa commit 680bbde
Showing 1 changed file with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB4 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '1.5')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '600')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '1.5')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '4000')
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '512')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '64')
Cyberpunk.SetOption('RayTracing/DynamicInstance', 'UpdateProxyNumMax', '128')

Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '500')
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '500')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'FloodMinNonLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'StreamMaxLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'TrickleMaxLoadingThreads', '1')
Expand All @@ -55,15 +55,15 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB6 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '3.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '1500')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '3.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '4000') --was 1500
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '512')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '64')
Cyberpunk.SetOption('RayTracing/DynamicInstance', 'UpdateProxyNumMax', '192')

Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '500') --was 300
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '500') --was 300
Cyberpunk.SetOption('ResourceLoaderThrottler', 'FloodMinNonLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'StreamMaxLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'TrickleMaxLoadingThreads', '1')
Expand All @@ -77,15 +77,15 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB8 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '4.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '2000')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '4.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '4000') --was 2000
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '768')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '80')
Cyberpunk.SetOption('RayTracing/DynamicInstance', 'UpdateProxyNumMax', '224')

Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '500') --was 300
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '500') --was 300
Cyberpunk.SetOption('ResourceLoaderThrottler', 'FloodMinNonLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'StreamMaxLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'TrickleMaxLoadingThreads', '1')
Expand All @@ -104,15 +104,15 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB10 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '5.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '2500')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '5.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '4000') --was 2500
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '1024')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '80')
Cyberpunk.SetOption('RayTracing/DynamicInstance', 'UpdateProxyNumMax', '224')

Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '300')
Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '500') --was 300
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '500') --was 300
Cyberpunk.SetOption('ResourceLoaderThrottler', 'FloodMinNonLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'StreamMaxLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'TrickleMaxLoadingThreads', '1')
Expand All @@ -131,15 +131,15 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB12 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '6.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '3000')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '6.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '4000') --was 3000
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '1024')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '96')
Cyberpunk.SetOption('RayTracing/DynamicInstance', 'UpdateProxyNumMax', '224')

Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '400')
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '400')
Cyberpunk.SetOption('Streaming', 'MaxNodesPerFrame', '500') --was 400
Cyberpunk.SetOption('Streaming', 'EditorThrottledMaxNodesPerFrame', '500') --was 400
Cyberpunk.SetOption('ResourceLoaderThrottler', 'FloodMinNonLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'StreamMaxLoadingThreads', '2')
Cyberpunk.SetOption('ResourceLoaderThrottler', 'TrickleMaxLoadingThreads', '1')
Expand Down Expand Up @@ -185,8 +185,8 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB20 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '10.0')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '10.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '5000')
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '1024')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '128')
Expand All @@ -212,8 +212,8 @@ function Config.SetVram(vram)
end

if vram == Var.vram.GB24 then
Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '12.0')
--Cyberpunk.SetOption('Rendering', 'FakeOverrideGPUVRAM', true)
--Cyberpunk.SetOption('Rendering', 'FakeGPUVRAM', '12.0')
Cyberpunk.SetOption('World/Streaming/PersistencyCache', 'PoolBudgetKB', '6000')
Cyberpunk.SetOption('Rendering', 'DistantShadowsMaxBatchSize', '1024')
Cyberpunk.SetOption('RayTracing', 'AccelerationStructureBuildNumMax', '128')
Expand Down

0 comments on commit 680bbde

Please sign in to comment.