-
Notifications
You must be signed in to change notification settings - Fork 10
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
Recent engines now crash with CSC2.0 stress-test #112
Comments
The source locations are added as annotations rather than any of the newer layer stuff, since I couldn't work out how to control the layer stuff last time I looked (e.g. change radius/color). There is a little more detail below, but the basic idea is that the 'show 2.0 sources' option causes a bunch of circle annotations to get added to the display, chosen to lie within a radius of the current location (roughly the screen size), and for this area it can cause ~28000 circles to get added. The JS is written in an "old-school" style (no bundles or modern packaging approaches) and the onload handler calls
where https://github.com/cxcsds/cscwwt/blob/main/website/wwt.js I cleverly decided to use the wwt "namespace" just to collide with the WWT code... The "load csc 2.0 sources" will fill up the |
Finally able to sit down and look at this. Some initial debugging notes:
After the call to
|
@DougBurke OK! If I hack a local copy of the app to not fill in the source circles, the stress test works for me. As annotated in my notes above, each filled circle adds 213 triangles to the WebGL render list, and 213 * 42,000 ~= 9 million triangles seems to be too many. If you really really want to render many filled circles we could investigate an optimization of that rendering path, but if there's a way to not fill the circles that makes you happy, that is gonna be the much simpler solution. |
Sorry - currently on holiday. Will get back to this when I'm back. |
Hi @DougBurke — with #160 merged, this problem should be better, although performance is still pretty gnarly in the stress-test case. I can now at least navigate around and not actually crash the renderer. |
@DougBurke reports that the CSC 2.0 WWT viewer is having problems with the newer engine that it didn't use to have. To reproduce:
For me, the view locks up pretty much instantly and eventually crashes. It used to just work, and it apparently still works using the very old version of the SDK obtained through
http://www.worldwidetelescope.org/scripts/wwtsdk.aspx
. The issue seems to be cross-browser and cross-platform.CC @imbasimba @Carifio24, although Henrik, we do need to prioritize your time for the tiled FITS stuff.
The text was updated successfully, but these errors were encountered: