mirror of
https://github.com/lubosz/overte.git
synced 2025-04-06 05:42:19 +02:00
Added following GPU ram options
10GB 12GB 16GB 20GB
This commit is contained in:
parent
7123487335
commit
be5ec341da
2 changed files with 13 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue