Add optional texture hashing

This commit is contained in:
wheremyfoodat
2025-06-23 02:45:13 +03:00
parent 6182d4cfe9
commit a0aa11dac0
10 changed files with 106 additions and 54 deletions

View File

@@ -231,6 +231,11 @@ ConfigWindow::ConfigWindow(ConfigCallback configCallback, MainWindowCallback win
connectCheckbox(accelerateShaders, config.accelerateShaders);
gpuLayout->addRow(accelerateShaders);
QCheckBox* hashTextures = new QCheckBox(tr("Hash textures"));
hashTextures->setToolTip(tr("Enable this to reduce texture mismatches at the cost of slightly lower performance"));
connectCheckbox(hashTextures, config.hashTextures);
gpuLayout->addRow(hashTextures);
QCheckBox* forceShadergenForLights = new QCheckBox(tr("Force shadergen when rendering lights"));
connectCheckbox(forceShadergenForLights, config.forceShadergenForLights);
gpuLayout->addRow(forceShadergenForLights);