Skip to content

Commit

Permalink
resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLastBreath committed Nov 27, 2023
1 parent edbf7cf commit 796111d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/settings/UltraCam.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ResolutionNames": [ "600p", "720p HD", "1080p FHD", "1440p QHD", "4K UHD", "6K QUHD", "8K UUHD" ],
"ResolutionValues": [ "1", "2", "3", "5", "5", "6", "7"],
"UltraCamValues": [ "0", "0", "1", "2", "2", "3", "4"],
"FPS": [ 20, 30, 60],
"ShadowResolutionNames": [ "Default", "Very Low x103", "Low x206", "Medium x512", "High x1024", "Ultra 1536"],
"ShadowResolutionValues": [ "0", "103", "206", "512", "1024", "1536" ],
Expand Down
3 changes: 2 additions & 1 deletion src/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ def Create_Mod_Patch(mode=None):
# Resolution scaling for MAX DFPS++
Resindex = self.ultracam_options.get("ResolutionNames").index(resolution)
current_res = self.ultracam_options.get("ResolutionValues", [""])[Resindex]
ultra_res = self.ultracam_options.get("UltraCamValues", [""])[Resindex]
# Yuzu settings
if self.mode == "Yuzu":
log.info(f"Applying {resolution} in Yuzu.")
Expand Down Expand Up @@ -1184,7 +1185,7 @@ def Create_Mod_Patch(mode=None):
config['DFPS'] = {'MaxFramerate': fps}
config["Features"] = {
"Fov": self.fov_var.get(),
"ResolutionScale": current_res,
"ResolutionScale": ultra_res,
"ShadowResolution": shadow_value,
"DisableFog": self.fog_var.get(),
}
Expand Down

0 comments on commit 796111d

Please sign in to comment.