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

Only re-compute bounding sphere of skeletons if something changed #3995

Merged
merged 4 commits into from
Apr 8, 2019

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented Apr 8, 2019

This is a perf optimization which hopefully improves https://discuss.webknossos.org/t/performance-regression-additional-lag/1441 a bit.

I noticed that simply moving through a dataset always re-computed the bounding spheres of the buffer geometries of skeletons. For a big tracing, this took up to 20% of the entire scripting time.

I think the change makes sense, however, I'm not 100% sure if there originally was a rationale behind always re-computing the bounding spheres? @daniel-wer Does something come to your mind here?

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • open a tracing with skeletons and ensure that everything works as expected

Issues:

  • improves performance

@philippotto philippotto self-assigned this Apr 8, 2019
@philippotto philippotto requested a review from daniel-wer April 8, 2019 12:14
Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

I don't think there was a rationale behind always recomputing, this change makes perfect sense, great find 👍

@philippotto philippotto merged commit e74b1b6 into master Apr 8, 2019
hotzenklotz added a commit that referenced this pull request Apr 25, 2019
* master: (43 commits)
  update screenshots (#4038)
  docker: don't set sbt/ivy cache (#4034)
  Slow down brush size change for small sizes (#4012)
  voulme tool bar now depends only on the active tool (#4029)
  Allow user to adapt GPU memory consumption to allow for better quality (#4015)
  Updates the Docs (#4020)
  hiding pricing and features in iframe (#4019)
  Fix sitemap for publication detail view (#4024)
  Add sitemap.xml (#4006)
  Allow empty trees  (#4010)
  Prefer annotation zoom over dataset zoom (#3992)
  Add details view for publications (#3994)
  remove enzyme test (#3997)
  Tensorflow segmentation (#3461)
  ensure that max zoom step is not exceeded when changing viewport area (#3996)
  allow isosurfaces for hybrid tracings when setting window.allowIsosurfaces (#3998)
  re-fetch buckets if fetching them failed (#3999)
  Only re-compute bounding sphere of skeletons if something changed (#3995)
  Fix dropdown login padding (#3988)
  Persist tree visibility (#3942)
  ...
@philippotto philippotto deleted the avoid-compute-bounding-sphere branch May 20, 2019 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants