Skip to content

Commit

Permalink
formatting, remove options
Browse files Browse the repository at this point in the history
  • Loading branch information
aShanki committed Apr 27, 2023
1 parent 3b9a09e commit 2945bd0
Showing 1 changed file with 73 additions and 80 deletions.
153 changes: 73 additions & 80 deletions modules/Game & Program tuners/Optimize-Bedrock.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
function Optimize-Bedrock {
[alias('optmcbe')]
[CmdletBinding()]
param(


[ValidateScript({
Test-Path $_ -PathType Leaf
})]
Expand All @@ -14,87 +13,79 @@ function Optimize-Bedrock {

$Presets = @{

High = @{
options = @{
gfx_viewdistance = 256
gfx_particleviewdistance = 1
gfx_viewbobbing = 1
gfx_fancygraphics = 1
gfx_transparentleaves = 1
gfx_smoothlighting = 1
gfx_fancyskies = 1
gfx_msaa = 4
gfx_texel_aa_2 = 0
gfx_multithreaded_renderer = 1
gfx_vsync = 0
}
High = @{
gfx_viewdistance = 256
gfx_particleviewdistance = 1
gfx_viewbobbing = 1
gfx_fancygraphics = 1
gfx_transparentleaves = 1
gfx_smoothlighting = 1
gfx_fancyskies = 1
gfx_msaa = 4
gfx_texel_aa_2 = 0
gfx_multithreaded_renderer = 1
gfx_vsync = 0
}

Low = @{
options = @{
gfx_viewdistance = 160
gfx_particleviewdistance = 0
gfx_viewbobbing = 0
gfx_fancygraphics = 0
gfx_transparentleaves = 0
gfx_smoothlighting = 0
gfx_fancyskies = 0
gfx_msaa = 1
gfx_texel_aa_2 = 0
gfx_multithreaded_renderer = 1
gfx_vsync = 0
}
Low = @{
gfx_viewdistance = 160
gfx_particleviewdistance = 0
gfx_viewbobbing = 0
gfx_fancygraphics = 0
gfx_transparentleaves = 0
gfx_smoothlighting = 0
gfx_fancyskies = 0
gfx_msaa = 1
gfx_texel_aa_2 = 0
gfx_multithreaded_renderer = 1
gfx_vsync = 0
}
ashanksupercool = @{
options = @{
gfx_viewdistance = 256
gfx_particleviewdistance = 1
gfx_viewbobbing = 1
gfx_fancygraphics = 0
gfx_transparentleaves = 1
gfx_vr_transparentleaves = 0
gfx_smoothlighting = 1
gfx_vr_smoothlighting = 0
gfx_fancyskies = 0
gfx_field_of_view = 81.2
gfx_msaa = 1
gfx_gamma = 1
gfx_multithreaded_renderer = 1
gfx_vsync = 0
dev_file_watcher = 1
audio_music = 0
gfx_hidepaperdoll = 1
dev_enable_texture_hot_reloader = 1
do_not_show_multiplayer_online_safety_warning = 1
only_show_trusted_skins = 0
camera_shake = 0
gfx_resizableui = 0
gfx_hotbarScale = 1
'keyboard_type_0_key.pickItem' = 75
'keyboard_type_0_key.hotbar.1' = 49
'keyboard_type_0_key.hotbar.2' = 50
'keyboard_type_0_key.hotbar.3' = 51
'keyboard_type_0_key.hotbar.4' = 52
'keyboard_type_0_key.hotbar.5' = 82
'keyboard_type_0_key.hotbar.6' = 70
'keyboard_type_0_key.hotbar.7' = 86
'keyboard_type_0_key.hotbar.8' = 90
'keyboard_type_0_key.hotbar.9' = '- 97'
'keyboard_type_0_key.inventory' = 69
'keyboard_type_0_key.togglePerspective' = 53
'keyboard_type_0_key.jump' = 32
'keyboard_type_0_key.sneak' = 16
'keyboard_type_0_key.sprint' = 17
'keyboard_type_0_key.left' = 65
'keyboard_type_0_key.right' = 68
'keyboard_type_0_key.back' = 83
'keyboard_type_0_key.forward' = 87
'keyboard_type_0_key.mobEffects' = 88
'keyboard_type_0_key.chat' = 13
'keyboard_type_0_key.emote' = 0


}
gfx_viewdistance = 256
gfx_particleviewdistance = 1
gfx_viewbobbing = 1
gfx_fancygraphics = 0
gfx_transparentleaves = 1
gfx_vr_transparentleaves = 0
gfx_smoothlighting = 1
gfx_vr_smoothlighting = 0
gfx_fancyskies = 0
gfx_field_of_view = 81.2
gfx_msaa = 1
gfx_gamma = 1
gfx_multithreaded_renderer = 1
gfx_vsync = 0
dev_file_watcher = 1
audio_music = 0
gfx_hidepaperdoll = 1
dev_enable_texture_hot_reloader = 1
do_not_show_multiplayer_online_safety_warning = 1
only_show_trusted_skins = 0
camera_shake = 0
gfx_resizableui = 0
gfx_hotbarScale = 1
'keyboard_type_0_key.pickItem' = 75
'keyboard_type_0_key.hotbar.1' = 49
'keyboard_type_0_key.hotbar.2' = 50
'keyboard_type_0_key.hotbar.3' = 51
'keyboard_type_0_key.hotbar.4' = 52
'keyboard_type_0_key.hotbar.5' = 82
'keyboard_type_0_key.hotbar.6' = 70
'keyboard_type_0_key.hotbar.7' = 86
'keyboard_type_0_key.hotbar.8' = 90
'keyboard_type_0_key.hotbar.9' = '- 97'
'keyboard_type_0_key.inventory' = 69
'keyboard_type_0_key.togglePerspective' = 53
'keyboard_type_0_key.jump' = 32
'keyboard_type_0_key.sneak' = 16
'keyboard_type_0_key.sprint' = 17
'keyboard_type_0_key.left' = 65
'keyboard_type_0_key.right' = 68
'keyboard_type_0_key.back' = 83
'keyboard_type_0_key.forward' = 87
'keyboard_type_0_key.mobEffects' = 88
'keyboard_type_0_key.chat' = 13
'keyboard_type_0_key.emote' = 0
}
}
)
Expand All @@ -103,7 +94,9 @@ function Optimize-Bedrock {

$optionsTable = (Get-Content $options) -Replace ':', '=' | ConvertFrom-StringData
Write-Verbose ($optionsTable | ConvertTo-Json -Depth 3)
$optionsTable = Merge-Hashtables -Original $optionsTable -Patch $Presets.$Preset.options

$optionsTable = Merge-Hashtables -Original $optionsTable -Patch $Presets.$Preset
Write-Verbose ($optionsTable | ConvertTo-Json -Depth 3)

Set-Content $options -Value (ConvertTo-MCSetting $optionsTable) -Force
}

0 comments on commit 2945bd0

Please sign in to comment.