Skip to content

Commit 42ab75c

Browse files
committed
[volt] add new mangohud settings
1 parent 3bc410a commit 42ab75c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A graphical user interface for configuring GPU related environment variables and
3333
- Mesa Drivers: Configure Mesa Drivers specific environment variables
3434
- NVIDIA Drivers: Configure NVIDIA Proprietary Drivers specific environment variables
3535
- Render Selection: Choose the renderers for both OpenGL and Vulkan applications
36-
- Set frame limit for both OpenGL and Vulkan applications (requires [mangohud](https://github.com/flightlessmango/MangoHud))
36+
- Set a frame limit for both OpenGL and Vulkan applications, and Texture Filters and MidMap LOD Bias for Vulkan only (requires [mangohud](https://github.com/flightlessmango/MangoHud))
3737
- All those GPU settings will be added to the `volt` script
3838
- Disk Configuration
3939
- Change Disks Schedulers

src/gpu_launch.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class GPULaunchManager:
7575
("Display Elements:", 'frame_display_combo', ["unset", "no hud", "fps only", "horizontal", "extended", "detailed"]),
7676
("Fps Limit:", 'frame_fps_limit_combo', ["unset", "unlimited", "15", "20", "24", "25", "30", "40", "45", "50", "60", "72", "75", "90", "100", "120", "144", "165", "180", "200", "240", "360"]),
7777
("Fps Limit Method:", 'frame_fps_method_combo', ["unset", "early - smoothest frametimes", "late - lowest latency"]),
78+
("Texture Filtering:", 'texture_filter_combo', ["unset", "bicubic", "retro", "trilinear"]),
79+
("Mipmap LOD Bias:", 'mipmap_lod_bias_combo', ["unset"] + [str(i) for i in range(-16, 17)]),
80+
("Anisotropic Filtering:", 'anisotropic_filter_combo', ["unset"] + [str(i) for i in range(0, 17)]),
7881
]
7982

8083
MESA_ENV_MAPPINGS = {
@@ -211,6 +214,24 @@ class GPULaunchManager:
211214
'var_name': 'MANGOHUD_CONFIG',
212215
'values': {'early - smoothest frametimes': 'early', 'late - lowest latency': 'late'},
213216
'prefix': 'fps_limit_method='
217+
},
218+
'texture_filter_combo': {
219+
'var_name': 'MANGOHUD_CONFIG',
220+
'values': {
221+
'bicubic': 'bicubic',
222+
'retro': 'retro',
223+
'trilinear': 'trilinear'
224+
}
225+
},
226+
'mipmap_lod_bias_combo': {
227+
'var_name': 'MANGOHUD_CONFIG',
228+
'direct_value': True,
229+
'prefix': 'picmip='
230+
},
231+
'anisotropic_filter_combo': {
232+
'var_name': 'MANGOHUD_CONFIG',
233+
'direct_value': True,
234+
'prefix': 'af='
214235
}
215236
}
216237

0 commit comments

Comments
 (0)