Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache file fixes #229

Merged
merged 2 commits into from
Oct 18, 2017
Merged

Cache file fixes #229

merged 2 commits into from
Oct 18, 2017

Conversation

tribal-tec
Copy link
Contributor

  • Optimize reading speed, total loading time went from ~140 to ~60 seconds
  • Fix missing progress update
  • Don't build default scene when loading cache file

* Optimize reading speed, total loading time went from ~140 to ~60 seconds
* Fix missing progress update
* Don't build default scene when loading cache file
@@ -921,7 +906,7 @@ void OSPRayScene::buildGeometry()
BRAYNS_INFO << "---------------------------------------------------"
<< std::endl;

if (!_parametersManager.getGeometryParameters().getSaveCacheFile().empty())
if (!geomParams.getSaveCacheFile().empty())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be outside the buildGeometry() function

@@ -91,7 +94,6 @@ class OSPRayScene : public brayns::Scene
uint64_t _serializeCones(const size_t materialId);
uint64_t _buildMeshOSPGeometry(const size_t materialId);

void _loadCacheFile();
void _saveCacheFile();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if saveSceneToCacheFile is empty, move contents to saveSceneToCacheFile()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants