From d1b1a356fc825f32602ab1b618a1e4a05c5666bc Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Tue, 3 Dec 2002 20:45:39 +0000 Subject: [PATCH] increase lowvidmem threshold --- panda/src/wdxdisplay/wdxGraphicsWindow.cxx | 2 +- panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/wdxdisplay/wdxGraphicsWindow.cxx b/panda/src/wdxdisplay/wdxGraphicsWindow.cxx index c335677ec0..9a6a89dd31 100644 --- a/panda/src/wdxdisplay/wdxGraphicsWindow.cxx +++ b/panda/src/wdxdisplay/wdxGraphicsWindow.cxx @@ -1808,7 +1808,7 @@ bool wdxGraphicsWindow::search_for_device(int devnum,DXDeviceInfo *pDevinfo) { // so this is the true value _dxgsg->scrn.MaxAvailVidMem = dwVidMemTotal; - #define LOWVIDMEMTHRESHOLD 3500000 + #define LOWVIDMEMTHRESHOLD 5500000 #define CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD 1000000 // every vidcard we deal with should have at least 1MB // assume buggy drivers (this means you, FireGL2) may return zero for dwVidMemTotal, so ignore value if its < CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD diff --git a/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx b/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx index 81a0549e2f..f0ca2bb1e8 100644 --- a/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx +++ b/panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx @@ -1884,7 +1884,7 @@ find_all_card_memavails(void) { // #define LOWVIDMEMTHRESHOLD 3500000 // #define CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD 1000000 - #define LOWVIDMEMTHRESHOLD 5000000 // 4MB cards should fall below this + #define LOWVIDMEMTHRESHOLD 5700000 // 4MB cards should fall below this #define CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD 1000000 // if # is > 1MB, card is lying and I cant tell what it is // assume buggy drivers (this means you, FireGL2) may return zero (or small amts) for dwVidMemTotal, so ignore value if its < CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD