History

Added following GPU ram options 10GB 12GB 16GB 20GB

OfficialR3ido101 committed 2 years ago

Commit be5ec341 parent 71234872 files · +13 −2Browse files

Showing the changes to interface/src/Menu.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Menu.cpp+9−2
@@ -465,8 +465,16 @@ Menu::Menu() { · 464 unmodified lines
465465 newMaxTextureMemory = MB_TO_BYTES(4096);
466466 } else if (MenuOption::RenderMaxTexture6144MB == text) {
467467 newMaxTextureMemory = MB_TO_BYTES(6144);
468− } else if (MenuOption::RenderMaxTexture8192MB == text) {
468+ } else if (MenuOption::RenderMaxTexture1024MB == text) {
469469 newMaxTextureMemory = MB_TO_BYTES(8192);
470+ } else if (MenuOption::RenderMaxTexture10240MB == text) {
471+ newMaxTextureMemory = MB_TO_BYTES(10240);
472+ } else if (MenuOption::RenderMaxTexture12288MB == text) {
473+ newMaxTextureMemory = MB_TO_BYTES(12288);
474+ } else if (MenuOption::RenderMaxTexture16384MB == text) {
475+ newMaxTextureMemory = MB_TO_BYTES(16384);
476+ } else if (MenuOption::RenderMaxTexture20480MB == text) {
477+ newMaxTextureMemory = MB_TO_BYTES(20480);
470478 }
471479 gpu::Texture::setAllowedGPUMemoryUsage(newMaxTextureMemory);
472480 });
@@ -775,7 +783,6 @@ Menu::Menu() { · 302 unmodified lines
775783 addActionToQMenuAndActionHash(crashMenu, MenuOption::CrashOnShutdown, 0, qApp, SLOT(crashOnShutdown()));
776784 }
777785
778−
779786 // Developer > Show Statistics
780787 addCheckableActionToQMenuAndActionHash(developerMenu, MenuOption::Stats, 0, true);
781788