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

Render window running slow after upgrade vtk.js from 21.2.1 to 25.6.0 #2543

Closed
jilei-hao opened this issue Aug 2, 2022 · 4 comments
Closed

Comments

@jilei-hao
Copy link

High-level description

The render window started running really slow for a model we built after upgrading the vtk.js version from 21.2.1 to 25.6.0.

I haven't touched the project since January and by then it was running smoothly with version 21.2.1. But after I re-run the project last week, the surface rendering was a little strange and I thought I should upgrade the library, since the browser has been constantly upgraded. My current version of browser is 103.0.5060.134 for intel mac.

I tried loading our model to the vtk.js example scene explore, and was having same performance issues. Our current model is about 8.4MB (zipped 4MB), exported as json scene from the VTK c++ library.
Ovary.zip

Steps to reproduce

Current behavior

  • Download the attached scene file that contains the model
  • Load the file in the scene explorer example

Environment

  • vtk.js: 25.6.0
  • OS: macOS Monterey 12.4
  • Browser: Chrome 103.0.5060.134 (Official Build) (x86_64)
@floryst
Copy link
Collaborator

floryst commented Aug 2, 2022

I'm loading your Ovary.zip file into the SceneExplorer, and I'm not seeing any slow rendering on Apple Silicon. I can try on an Intel machine.

@jilei-hao
Copy link
Author

Thanks for testing and replying! I attached two profiles from dev tool to help troubleshooting. "fullsize-slow.json" is generated when I loaded the full-size file in my first post. The "downsampled-fast.json" is generated when I loaded a significantly downsampled file. If you can see the screenshots in the profile, the full size file change position only after a period of time while the downsampled file was moving smoothly.

Let me know if any other information could be helpful for troubleshooting.
Downsampled.zip
profile.zip

@daker
Copy link
Collaborator

daker commented Aug 3, 2022

@jilei-hao please try this solution #2494 (comment) this is a GPU backend issue

@jilei-hao
Copy link
Author

@daker The solution works! Thank you so much!

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

No branches or pull requests

3 participants