diff Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1663:fc883105ee11

enable cache of ParsedDicomFile in oracle
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Nov 2020 11:24:03 +0100
parents 66e5fcdf5597
children f62f685e0eb2
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp	Thu Nov 19 10:52:05 2020 +0100
+++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp	Thu Nov 19 11:24:03 2020 +0100
@@ -2358,7 +2358,7 @@
 static boost::shared_ptr<OrthancStone::WebAssemblyLoadersContext> context_;
 static std::string stringBuffer_;
 static bool softwareRendering_ = false;
-static WebViewerAction leftButtonAction_ = WebViewerAction_Crosshair; //WebViewerAction_GrayscaleWindowing;
+static WebViewerAction leftButtonAction_ = WebViewerAction_GrayscaleWindowing;
 static WebViewerAction middleButtonAction_ = WebViewerAction_Pan;
 static WebViewerAction rightButtonAction_ = WebViewerAction_Zoom;
 
@@ -2429,6 +2429,8 @@
     //Orthanc::Logging::EnableTraceLevel(true);
 
     context_.reset(new OrthancStone::WebAssemblyLoadersContext(1, 4, 1));
+    context_->SetDicomCacheSize(128 * 1024 * 1024);  // 128MB
+    
     cache_.reset(new FramesCache);
     annotations_.reset(new OrthancStone::OsiriX::CollectionOfAnnotations);