Added following GPU ram options

10GB
12GB
16GB
20GB
This commit is contained in:
OfficialR3ido101 2023-12-08 20:57:10 +00:00
parent 7123487335
commit be5ec341da
2 changed files with 13 additions and 2 deletions

View file

@ -465,8 +465,16 @@ Menu::Menu() {
newMaxTextureMemory = MB_TO_BYTES(4096);
} else if (MenuOption::RenderMaxTexture6144MB == text) {
newMaxTextureMemory = MB_TO_BYTES(6144);
} else if (MenuOption::RenderMaxTexture8192MB == text) {
} else if (MenuOption::RenderMaxTexture1024MB == text) {
newMaxTextureMemory = MB_TO_BYTES(8192);
} else if (MenuOption::RenderMaxTexture10240MB == text) {
newMaxTextureMemory = MB_TO_BYTES(10240);
} else if (MenuOption::RenderMaxTexture12288MB == text) {
newMaxTextureMemory = MB_TO_BYTES(12288);
} else if (MenuOption::RenderMaxTexture16384MB == text) {
newMaxTextureMemory = MB_TO_BYTES(16384);
} else if (MenuOption::RenderMaxTexture20480MB == text) {
newMaxTextureMemory = MB_TO_BYTES(20480);
}
gpu::Texture::setAllowedGPUMemoryUsage(newMaxTextureMemory);
});
@ -775,7 +783,6 @@ Menu::Menu() {
addActionToQMenuAndActionHash(crashMenu, MenuOption::CrashOnShutdown, 0, qApp, SLOT(crashOnShutdown()));
}
// Developer > Show Statistics
addCheckableActionToQMenuAndActionHash(developerMenu, MenuOption::Stats, 0, true);

View file

@ -175,6 +175,10 @@ namespace MenuOption {
const QString RenderMaxTexture4096MB = "4096 MB";
const QString RenderMaxTexture6144MB = "6144 MB";
const QString RenderMaxTexture8192MB = "8192 MB";
const QString RenderMaxTexture10240MB = "10240 MB";
const QString RenderMaxTexture12288MB = "12288 MB";
const QString RenderMaxTexture16384MB = "16384 MB";
const QString RenderMaxTexture20480MB = "24576 MB";
const QString RenderSensorToWorldMatrix = "Show SensorToWorld Matrix";
const QString RenderIKTargets = "Show IK Targets";
const QString RenderIKConstraints = "Show IK Constraints";