Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,13 @@ private Frame createGeneralFrame() {
.setText(Text.translatable("superresolution.screen.config.hint.performance_warning.text").getString())
.setDisplayRequirement(OptionRequirement.isTrue(() -> SuperResolutionConfig.isEnableUpscaleOriginal() && !SRWorkModeManager.getCurrentState().shaderPackInUse() && !SuperResolutionConfig.isDisableUpscaleOnVanilla()))
.build();
builder.hintOption(Text.literal("frame_generation_only_warning"))
.setIcon(MaterialSymbols.iconWarning())
.setTitle(Text.translatable("superresolution.screen.config.hint.frame_generation_only_warning.title").getString())
.setText(Text.translatable("superresolution.screen.config.hint.frame_generation_only_warning.text").getString())
.setDisplayRequirement(OptionRequirement.isTrue(() ->
SRWorkModeManager.getCurrentState().onlySupportsFrameGeneration()))
.build();
builder.hintOption(Text.literal("shader_compat_warning"))
.setIcon(MaterialSymbols.iconWarning())
.setTitle(Text.translatable("superresolution.screen.config.hint.shader_compat_warning.title").getString())
Expand Down Expand Up @@ -598,14 +605,19 @@ private Frame createGeneralFrame() {
if (isExperimentalAlgorithm(algorithmDescription)) return SuperResolutionConfig.isEnableExperimentalFeatures();
return true;

}
},
() -> !SRWorkModeManager.getCurrentState().disabledAlgorithms().contains(algorithmDescription.getCodeName())
);
})
.setMenuItemTooltipSupplier((algo)->{
AlgorithmDescription<?> algorithmDescription = (AlgorithmDescription<?>) algo;
var result = algorithmDescription.getRequirement().check();
StringBuilder sb = new StringBuilder();
sb.append(algorithmDescription.getDisplayName());
if (SRWorkModeManager.getCurrentState().disabledAlgorithms().contains(algorithmDescription.getCodeName())) {
sb.append("\n");
sb.append(Text.translatable("superresolution.screen.config.options.tooltip.algo.disabled_by_shaderpack").getString());
}
if (isExperimentalAlgorithm(algorithmDescription) && SuperResolutionConfig.isEnableExperimentalFeatures()){
sb.append("\n");
sb.append(Text.translatable("superresolution.screen.config.options.tooltip.algo.experimental_warning").getString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@
import io.homo.superresolution.core.graphics.impl.texture.TextureFormat;
import org.jetbrains.annotations.Nullable;

import java.util.Collections;
import java.util.List;

public record SRWorkModeState(
InitializationDescription initializationDescription,
TextureFormat internalTextureFormat,
@Nullable String motionVectorPreprocessingFunction,
boolean shaderPackInUse,
boolean shaderPackLoading
boolean shaderPackLoading,
boolean onlySupportsFrameGeneration,
List<String> disabledAlgorithms
) {
public static SRWorkModeState defaults() {
return new SRWorkModeState(
InitializationDescription.defaults(),
TextureFormat.RGBA16F,
null,
false,
false
false,
false,
Collections.emptyList()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
"superresolution.screen.warn": "Warning",
"superresolution.screen.config.options.tooltip.algo.experimental_warning": "This algorithm is experimental, unstable, and may cause crashes or errors",
"superresolution.screen.config.options.tooltip.algo.experimental_disabled_hint": "This algorithm is experimental, unstable, and may cause crashes or errors\nTo use it, please enable Experimental > Enable Experimental Features",
"superresolution.screen.config.options.tooltip.algo.disabled_by_shaderpack": "This algorithm is disabled by the shader pack",
"superresolution.screen.config.options.tooltip.algo.unsupported_reason_header": "This algorithm is not supported. Reasons:",
"superresolution.screen.config.options.tooltip.algo.reason.opengl_version": "· OpenGL version not supported",
"superresolution.screen.config.options.tooltip.algo.reason.opengl_extension": "· Missing required OpenGL extensions",
Expand All @@ -309,5 +310,7 @@
"superresolution.screen.config.hint.b3d_vulkan_unavailable.text": "The Vulkan graphics backend is currently in use. Because Iris does not support the Vulkan backend yet, Super Resolution cannot enable upscaling or scaling in this environment; you can still open the configuration screen, but all features will be unavailable.",
"superresolution.screen.config.hint.shader_compat_warning.title": "Shader Compatibility Warning",
"superresolution.screen.config.hint.shader_compat_warning.text": "The current shader pack has not been adapted for the super resolution mod and will run in compatibility mode. This mode may cause: blurry visuals, ghosting artifacts, performance degradation, and reduced compatibility with other mods.",
"superresolution.screen.config.hint.frame_generation_only_warning.title": "Frame Generation Only Mode",
"superresolution.screen.config.hint.frame_generation_only_warning.text": "This shader pack uses frame-generation-only mode. Super resolution is disabled.",
"superresolution.translate.PoweredByDeepSeek": "Powered by DeepSeek"
}
37 changes: 20 additions & 17 deletions common/src/main/resources/assets/super_resolution/lang/ja_jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"superresolution.screen.config.button.label.info": "情報",
"superresolution.screen.config.category.debug": "デバッグ設定",
"superresolution.screen.config.category.general": "一般",
"superresolution.screen.config.category.super_resolution": "超解像度",
"superresolution.screen.config.category.other": "その他",
"superresolution.screen.config.category.super_resolution": "超解像度",
"superresolution.screen.config.category.other": "その他",
"superresolution.screen.config.category.advanced": "詳細",
"superresolution.screen.config.category.appearance": "外観",
"superresolution.screen.config.category.experimental": "実験的",
Expand Down Expand Up @@ -98,7 +98,7 @@
"superresolution.screen.config.error.capture_mode_unsupported": "現在のキャプチャ方式は %s では使用できません。",
"superresolution.screen.config.error.unsupported_algorithm": "現在の環境ではこのアルゴリズムはサポートされていません",
"superresolution.screen.config.info.about.amd_disclaimer": "本ソフトウェアで言及される AMD は、Advanced Micro Devices, Inc. の米国およびその他の国における商標または登録商標です。本プロジェクトは Advanced Micro Devices, Inc. と一切関係がなく、同社による承認や認可も受けていません。",
"superresolution.screen.config.info.about.contributor.187j3x1.desc": "この人、たぶん作者です",
"superresolution.screen.config.info.about.contributor.187j3x1.desc": "この人、たぶん作者です",
"superresolution.screen.config.info.about.contributor.ar.desc": "キツネ!キツネ!キツネ!",
"superresolution.screen.config.info.about.contributor.chenmeng.desc": "天才(笑)",
"superresolution.screen.config.info.about.contributor.chloeprime.desc": "このMODのバグ修正やその他の貢献に感謝します!",
Expand All @@ -109,9 +109,9 @@
"superresolution.screen.config.info.about.contributor.shiroiame.desc": "このMODの多くのバグ修正や、その他の貢献に感謝します!",
"superresolution.screen.config.info.about.contributor.suodeliesi.desc": "機材の提供や、Intel環境におけるいくつかのバグ修正に感謝します。",
"superresolution.screen.config.info.about.contributor.starsshine11904.desc": "このMODの繁体字中国語翻訳を作成してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.nohimazin.desc": "このMODの日本語翻訳を作成してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.haringpro.desc": "Revoxelation/Revelation シェーダーに Super Resolution 互換性を追加してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.tahnass.desc": "ITRP shadersにSuper Resolution対応を追加してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.nohimazin.desc": "このMODの日本語翻訳を作成してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.haringpro.desc": "Revoxelation/Revelation シェーダーに Super Resolution 互換性を追加してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.tahnass.desc": "ITRP shadersにSuper Resolution対応を追加してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.geforcelegend.desc": "Sundial shadersにSuper Resolution対応を追加してくださり、ありがとうございます!",
"superresolution.screen.config.info.about.contributor.xiaolang.desc": "RTX 5090 の寄付に感謝します!",
"superresolution.screen.config.info.about.contributor.ysjmxy.desc": "謎のマスコット!",
Expand Down Expand Up @@ -218,8 +218,8 @@
"superresolution.screen.config.section.performance.chart.world_render": "ワールドレンダラー",
"superresolution.screen.config.section.performance.chart.gui": "GUI",
"superresolution.screen.config.section.profiling": "プロファイラー",
"superresolution.screen.config.special.dlss.renderpreset.name": "NVIDIA DLSS レンダープリセット",
"superresolution.screen.config.special.dlss.renderpreset.tooltip": "NVIDIA DLSS のレンダープリセット(モデル)を選択します",
"superresolution.screen.config.special.dlss.renderpreset.name": "NVIDIA DLSS レンダープリセット",
"superresolution.screen.config.special.dlss.renderpreset.tooltip": "NVIDIA DLSS のレンダープリセット(モデル)を選択します",
"superresolution.screen.config.special.fsr.version.name": "FSR バージョン",
"superresolution.screen.config.special.fsr.version.tooltip": "FSR のバージョン: 2.3.3 は FSR2 で、3.1.4 は FSR3 です。\n既定は 2.3.3 です",
"superresolution.screen.config.special.fsr1.fp16.name": "半精度 (FP16) を有効化",
Expand All @@ -238,17 +238,17 @@
"superresolution.screen.info.button.label.opengl_ext_info": "OpenGL 拡張情報",
"superresolution.screen.info.button.label.vulkan_ext_info": "Vulkan 拡張情報",
"superresolution.screen.info.link.github_repo": "GitHub リポジトリ",
"superresolution.screen.info.link.issue_tracker": "問題追跡",
"superresolution.screen.info.link.mcmod_homepage": "MC百科のホームページ",
"superresolution.screen.info.link.official_website": "公式サイト",
"superresolution.screen.info.link.wiki": "Wiki",
"superresolution.screen.info.name": "情報",
"superresolution.screen.info.link.issue_tracker": "問題追跡",
"superresolution.screen.info.link.mcmod_homepage": "MC百科のホームページ",
"superresolution.screen.info.link.official_website": "公式サイト",
"superresolution.screen.info.link.wiki": "Wiki",
"superresolution.screen.info.name": "情報",
"superresolution.screen.info.performance_info.frame_time": "フレーム時間 %1$sms",
"superresolution.screen.info.performance_info.upscale_time": "アップスケールアルゴリズム所要時間 %1$sms",
"superresolution.screen.info.performance_info.world_time": "ワールド描画所要時間 %1$sms",
"superresolution.screen.info.text.algo_support_status": "各アルゴリズムの対応状況",
"superresolution.screen.info.text.author": "作者",
"superresolution.screen.info.text.contributors": "貢献者 / 謝辞",
"superresolution.screen.info.text.author": "作者",
"superresolution.screen.info.text.contributors": "貢献者 / 謝辞",
"superresolution.screen.info.text.contributors_order_random": "並び順はランダム",
"superresolution.screen.info.text.is_available": "現在サポートされていますか?%s",
"superresolution.screen.info.text.min_opengl_version": "最低 OpenGL バージョン: %s.%s",
Expand Down Expand Up @@ -291,6 +291,7 @@
"superresolution.screen.warn": "警告",
"superresolution.screen.config.options.tooltip.algo.experimental_warning": "このアルゴリズムは実験的機能であり、まだ安定していません。\nクラッシュや不具合が発生する可能性があります",
"superresolution.screen.config.options.tooltip.algo.experimental_disabled_hint": "このアルゴリズムは実験的機能であり、まだ安定していません。\nクラッシュや不具合が発生する可能性があります。\n使用するには「実験的」→「実験的機能を有効化」をオンにしてください",
"superresolution.screen.config.options.tooltip.algo.disabled_by_shaderpack": "このアルゴリズムはシェーダーパックによって無効化されています",
"superresolution.screen.config.options.tooltip.algo.unsupported_reason_header": "このアルゴリズムはサポートされていません。理由:",
"superresolution.screen.config.options.tooltip.algo.reason.opengl_version": "· OpenGL バージョンがサポートされていません",
"superresolution.screen.config.options.tooltip.algo.reason.opengl_extension": "· 必要な OpenGL 拡張が不足しています",
Expand All @@ -303,11 +304,13 @@
"superresolution.screen.config.options.tooltip.algo.reason.dev_env_only": "· 開発環境でのみ利用可能です",
"superresolution.screen.config.options.tooltip.algo.reason.other": "· その他の理由",
"superresolution.screen.config.options.tooltip.upscale_ratio.custom_unsupported": "このアルゴリズムではカスタム倍率はサポートされていません",
"superresolution.screen.config.hint.performance_warning.title": "パフォーマンスと互換性に関する警告",
"superresolution.screen.config.hint.performance_warning.text": "現在シェーダーが有効になっていません。バニラのMinecraftはグラフィック負荷が低いため、超解像によるパフォーマンス向上は見込めず、フレームレートが低下する可能性があります。バニラモードでの互換性は限定的で、一部のMODと描画競合が発生する可能性があります。",
"superresolution.screen.config.hint.performance_warning.title": "パフォーマンスと互換性に関する警告",
"superresolution.screen.config.hint.performance_warning.text": "現在シェーダーが有効になっていません。バニラのMinecraftはグラフィック負荷が低いため、超解像によるパフォーマンス向上は見込めず、フレームレートが低下する可能性があります。バニラモードでの互換性は限定的で、一部のMODと描画競合が発生する可能性があります。",
"superresolution.screen.config.hint.b3d_vulkan_unavailable.title": "Super Resolution は Vulkan バックエンドでは動作できません",
"superresolution.screen.config.hint.b3d_vulkan_unavailable.text": "現在 Vulkan グラフィックスバックエンドが使用されています。Iris はまだ Vulkan をサポートしていないため、この環境では Super Resolution のアップスケーリング/スケーリング機能を正常に有効化できません。設定画面は開けますが、すべての機能は利用できません。",
"superresolution.screen.config.hint.shader_compat_warning.title": "シェーダー互換性警告",
"superresolution.screen.config.hint.shader_compat_warning.text": "現在のシェーダーパックはSuper Resolution MODに対応していないため、互換モードで動作します。このモードでは、画面のぼやけ、ゴーストの発生、パフォーマンス低下、他のMODとの互換性低下などの問題が発生する可能性があります。",
"superresolution.screen.config.hint.frame_generation_only_warning.title": "フレーム生成のみモード",
"superresolution.screen.config.hint.frame_generation_only_warning.text": "このシェーダーパックはフレーム生成のみモードを使用しています。超解像度機能は無効です",
"superresolution.translate.PoweredByDeepSeek": "?"
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
"superresolution.screen.warn": "警告",
"superresolution.screen.config.options.tooltip.algo.experimental_warning": "该算法为实验性功能,尚不稳定,可能会导致崩溃或错误",
"superresolution.screen.config.options.tooltip.algo.experimental_disabled_hint": "该算法为实验性功能,尚不稳定,可能会导致崩溃或错误\n如需使用请打开 实验性 > 启用实验性功能 选项",
"superresolution.screen.config.options.tooltip.algo.disabled_by_shaderpack": "此算法已被光影包禁用",
"superresolution.screen.config.options.tooltip.algo.unsupported_reason_header": "不支持此算法,原因:",
"superresolution.screen.config.options.tooltip.algo.reason.opengl_version": "· 当前OpenGL版本不受支持",
"superresolution.screen.config.options.tooltip.algo.reason.opengl_extension": "· 缺失必要的OpenGL扩展",
Expand All @@ -309,5 +310,7 @@
"superresolution.screen.config.hint.b3d_vulkan_unavailable.text": "检测到当前正在使用 Vulkan 图形后端。由于 Iris 暂不支持 Vulkan,Super Resolution 无法在该环境下正常启用升采样/缩放功能;你仍可打开配置界面,但所有功能将不可用。",
"superresolution.screen.config.hint.shader_compat_warning.title": "光影兼容性警告",
"superresolution.screen.config.hint.shader_compat_warning.text": "当前光影尚未适配超分辨率模组,将以兼容模式运行。此模式下可能出现:画面模糊、重影鬼影、性能下降、与其他模组的兼容性降低等问题",
"superresolution.screen.config.hint.frame_generation_only_warning.title": "仅启用帧生成模式",
"superresolution.screen.config.hint.frame_generation_only_warning.text": "此光影使用仅帧生成模式,超分辨率功能已禁用",
"superresolution.translate.PoweredByDeepSeek": "?"
}
Loading