Opened 6 years ago

Closed 6 years ago

#2218 closed defect (fixed)

Slow (distance) label redraw with shadows

Reported by: tic20@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc: pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.6.0-x86_64-i386-64bit
ChimeraX Version: 0.91 (2019-07-02)
Description
The combination of full shadows and distance labels slows ChimeraX to a crawl on my MacBook Air (2-3 fps when rotating). 

Log:
UCSF ChimeraX version: 0.91 (2019-07-02)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 6n60 format mmCIF fromDatabase pdb

6n60 title:  
Escherichia coli RNA polymerase sigma70-holoenzyme bound to upstream fork
promoter DNA and Microcin J25 (MccJ25) [more info...]  
  
Chain information for 6n60 #1  
---  
Chain | Description  
A B | DNA-directed RNA polymerase subunit α  
C | DNA-directed RNA polymerase subunit β  
D | DNA-directed RNA polymerase subunit beta'  
E | DNA-directed RNA polymerase subunit ω  
F | RNA polymerase σ factor RpoD  
M | Microcin J25  
N | non-template strand DNA  
T | template strand DNA  
  
Non-standard residues in 6n60 #1  
---  
MG — magnesium ion  
ZN — zinc ion  
  
  

> ui mousemode rightMode distance

> distance /T:15@OP1 /N:15@OP1

Distance between /T DG 15 OP1 and /N DG 15 OP1: 12.401Å  

> graphics frameRate true




OpenGL version: 4.1 INTEL-12.9.22
OpenGL renderer: Intel(R) HD Graphics 6000
OpenGL vendor: Intel Inc.

Attachments (1)

Screenshot 2019-07-15 at 18.40.07.png (67.1 KB ) - added by tic20@… 6 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (8)

comment:1 by pett, 6 years ago

Cc: pett added
Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionSlow (distance) label redraw with shadows

Didn't seem to happen on my Mac (2012 iMac)

in reply to:  2 ; comment:2 by tic20@…, 6 years ago

Here's the specs for my Mac.

Did you try it for a big model? On my machine the effect's still 
noticeable even for a tiny model like 1a0m - brings rotation down to 
15fps vs 60fps without labels.

On 2019-07-15 18:33, ChimeraX wrote:

Screenshot 2019-07-15 at 18.40.07.png

by tic20@…, 6 years ago

Added by email2trac

comment:3 by pett, 6 years ago

I used the model you reported it on: 6n60, in its default CPK representation.

in reply to:  5 comment:4 by tic20@…, 6 years ago

Perhaps try it with ribbons on? It looks to me like it’s triggering a redraw on every movement.

 
 
Tristan Croll
Research Fellow
Cambridge Institute for Medical Research
University of Cambridge CB2 0XY
 

 


in reply to:  6 ; comment:5 by tic20@…, 6 years ago

... although that wouldn’t explain why it’s still fast in simple lighting. Regardless, I’ve had the ribbon shown and stick representation each time.

 
 
Tristan Croll
Research Fellow
Cambridge Institute for Medical Research
University of Cambridge CB2 0XY
 

 


in reply to:  7 ; comment:6 by goddard@…, 6 years ago

Looks like shadows are being cast by labels, and since they reorient to be perpendicular to the screen, ambient shadows are probably recalculated on every movement.  The code used to turn off shadow casting for labels, but I see that is broken by some changes made months ago that optimized labels.  Should be easy to fix.

comment:7 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Rotation became very slow for my new iMac with 6n60 and one distance label. It was updating ambient shadows due to some label code rearrangement some months ago that accidentally reenabled shadow casting by labels. I have made them not cast shadows and it is now fast.

Note: See TracTickets for help on using tickets.