Skip to content

Commit

Permalink
Add backface culling setting's translatable components
Browse files Browse the repository at this point in the history
  • Loading branch information
xCollateral committed Oct 13, 2024
1 parent ef9388e commit a7ffe3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/vulkanmod/config/option/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,13 @@ public static OptionBlock[] getOptimizationOpts() {
},
() -> config.uniqueOpaqueLayer)
.setTooltip(Component.translatable("vulkanmod.options.uniqueOpaqueLayer.tooltip")),
new SwitchOption(Component.translatable("Back face culling"),
new SwitchOption(Component.translatable("vulkanmod.options.backfaceCulling"),
value -> {
config.backFaceCulling = value;
Minecraft.getInstance().levelRenderer.allChanged();
},
() -> config.backFaceCulling),
() -> config.backFaceCulling)
.setTooltip(Component.translatable("vulkanmod.options.backfaceCulling.tooltip")),
new SwitchOption(Component.translatable("vulkanmod.options.indirectDraw"),
value -> config.indirectDraw = value,
() -> config.indirectDraw)
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/assets/vulkanmod/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
"vulkanmod.options.frameQueue": "Render queue size",
"vulkanmod.options.frameQueue.tooltip": "Higher values might help stabilize frametime but will increase input lag.",

"vulkanmod.options.backfaceCulling": "Backface Culling",
"vulkanmod.options.backfaceCulling.tooltip": "Culls not visible block faces on the CPU improving GPU performance. To prevent increased CPU overhead enable Indirect Draw.",

"vulkanmod.options.indirectDraw": "Indirect Draw",
"vulkanmod.options.indirectDraw.tooltip": "Reduces CPU overhead but increases GPU overhead. Enabling it might help in CPU limited systems.",
"vulkanmod.options.indirectDraw.tooltip": "Reduces CPU overhead but might increases GPU overhead.",

"vulkanmod.options.refreshRate": "Refresh Rate",

Expand Down

0 comments on commit a7ffe3d

Please sign in to comment.