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)

debug.py (3.2 KB ) - added by pett 8 years ago.
chunky.cxs (677.3 KB ) - added by pett 8 years ago.

Download all attachments as: .zip

Change History (4)

by pett, 8 years ago

Attachment: debug.py added

by pett, 8 years ago

Attachment: chunky.cxs added

comment:1 by Tom Goddard, 8 years ago

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.

comment:2 by Tom Goddard, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Individual drawings can now choose to not cast shadows. Made labels not cast shadows.

Note: See TracTickets for help on using tickets.