diff options
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index cdecaf4..a630beb 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -57,9 +57,12 @@ | |||
57 | #include "llares.h" | 57 | #include "llares.h" |
58 | #include "llcurl.h" | 58 | #include "llcurl.h" |
59 | #include "llfloatersnapshot.h" | 59 | #include "llfloatersnapshot.h" |
60 | #include "lltexturestats.h" | ||
60 | #include "llviewerwindow.h" | 61 | #include "llviewerwindow.h" |
61 | #include "llviewerdisplay.h" | 62 | #include "llviewerdisplay.h" |
62 | #include "llviewermedia.h" | 63 | #include "llviewermedia.h" |
64 | |||
65 | |||
63 | #include "llviewermessage.h" | 66 | #include "llviewermessage.h" |
64 | #include "llviewerobjectlist.h" | 67 | #include "llviewerobjectlist.h" |
65 | #include "llworldmap.h" | 68 | #include "llworldmap.h" |
@@ -435,7 +438,7 @@ static void settings_modify() | |||
435 | LLVOSurfacePatch::sLODFactor *= LLVOSurfacePatch::sLODFactor; //square lod factor to get exponential range of [1,4] | 438 | LLVOSurfacePatch::sLODFactor *= LLVOSurfacePatch::sLODFactor; //square lod factor to get exponential range of [1,4] |
436 | gDebugGL = gSavedSettings.getBOOL("RenderDebugGL"); | 439 | gDebugGL = gSavedSettings.getBOOL("RenderDebugGL"); |
437 | gDebugPipeline = gSavedSettings.getBOOL("RenderDebugPipeline"); | 440 | gDebugPipeline = gSavedSettings.getBOOL("RenderDebugPipeline"); |
438 | 441 | gAuditTexture = gSavedSettings.getBOOL("AuditTexture"); | |
439 | #if LL_VECTORIZE | 442 | #if LL_VECTORIZE |
440 | if (gSysCPU.hasAltivec()) | 443 | if (gSysCPU.hasAltivec()) |
441 | { | 444 | { |
@@ -527,7 +530,7 @@ const std::string LLAppViewer::sPerAccountSettingsName = "PerAccount"; | |||
527 | const std::string LLAppViewer::sCrashSettingsName = "CrashSettings"; | 530 | const std::string LLAppViewer::sCrashSettingsName = "CrashSettings"; |
528 | 531 | ||
529 | LLTextureCache* LLAppViewer::sTextureCache = NULL; | 532 | LLTextureCache* LLAppViewer::sTextureCache = NULL; |
530 | LLWorkerThread* LLAppViewer::sImageDecodeThread = NULL; | 533 | LLImageDecodeThread* LLAppViewer::sImageDecodeThread = NULL; |
531 | LLTextureFetch* LLAppViewer::sTextureFetch = NULL; | 534 | LLTextureFetch* LLAppViewer::sTextureFetch = NULL; |
532 | 535 | ||
533 | LLAppViewer::LLAppViewer() : | 536 | LLAppViewer::LLAppViewer() : |
@@ -1512,14 +1515,14 @@ bool LLAppViewer::initThreads() | |||
1512 | LLWatchdog::getInstance()->init(watchdog_killer_callback); | 1515 | LLWatchdog::getInstance()->init(watchdog_killer_callback); |
1513 | } | 1516 | } |
1514 | 1517 | ||
1515 | LLVFSThread::initClass(enable_threads && true); | 1518 | LLVFSThread::initClass(enable_threads && false); |
1516 | LLLFSThread::initClass(enable_threads && true); | 1519 | LLLFSThread::initClass(enable_threads && false); |
1517 | 1520 | ||
1518 | // Image decoding | 1521 | // Image decoding |
1519 | LLAppViewer::sImageDecodeThread = new LLWorkerThread("ImageDecode", enable_threads && true); | 1522 | LLAppViewer::sImageDecodeThread = new LLImageDecodeThread(enable_threads && true); |
1520 | LLAppViewer::sTextureCache = new LLTextureCache(enable_threads && true); | 1523 | LLAppViewer::sTextureCache = new LLTextureCache(enable_threads && true); |
1521 | LLAppViewer::sTextureFetch = new LLTextureFetch(LLAppViewer::getTextureCache(), enable_threads && false); | 1524 | LLAppViewer::sTextureFetch = new LLTextureFetch(LLAppViewer::getTextureCache(), sImageDecodeThread, enable_threads && true); |
1522 | LLImage::initClass(LLAppViewer::getImageDecodeThread()); | 1525 | LLImage::initClass(); |
1523 | 1526 | ||
1524 | // *FIX: no error handling here! | 1527 | // *FIX: no error handling here! |
1525 | return true; | 1528 | return true; |