Opened 8 years ago
Closed 8 years ago
#810 closed defect (fixed)
labels == slow
Reported by: | pett | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | blocker | Milestone: | Alpha 3 |
Component: | Performance | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
In the attached session I have roughly 10 labels shown, but the graphical response is quite chunky. Closing the labels model speeds things right up.
Attachments (2)
Change History (4)
by , 8 years ago
by , 8 years ago
Attachment: | chunky.cxs added |
---|
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed.
Individual drawings can now choose to not cast shadows. Made labels not cast shadows.
Note:
See TracTickets
for help on using tickets.
The trouble seems to be it is recomputing the ambient shadows at every motion because the labels reorient. Switching to simple lighting speeds it up. Labels of course don't cast shadows so the shadows should not update, but the label reorientation causes a "shape changed" graphics change and that is what causes the shadow recalculation. There is currently no provision to handle models that don't cast shadows. I've made a plan for how to handle these so that VR hand controller models (cones) don't cause shadow recomputation which makes the VR not work since the update rate is to slow. The plan is I need to actually record which models had their shape change, then the shadow computation looks if any models that changed shape are actually casting shadows then an update occurs.
Not going to do this today, it changes lots of code. Might try tomorrow or next week.