SciKit-Surgery / scikit-surgerybard

BARD: The Basic Augmented Reality Demo, used at MedICSS summer school.
https://scikit-surgerybard.readthedocs.io/
Other
7 stars 3 forks source link

Frame Rate #92

Closed thompson318 closed 2 years ago

thompson318 commented 2 years ago

Frame rate on the SmartLiver BC was dismal (2 seconds? per frame). GPU utilisation was around 100%. Try and debug.

thompson318 commented 2 years ago

Testing on Ubuntu 15/03/2022 couldn't replicate

thompson318 commented 2 years ago

Testing on Windows 10 pro 16/03/2022 (same system as first comment) GPU utilisation now 30%. Could not replicate

thompson318 commented 2 years ago

Testing on Windows as above. Setting opacity less that 100% seems to trigger this

thompson318 commented 2 years ago

@MattClarkson Do you remember in the lab last week my BARD software was very slow? From what I can see this behavior seems to be triggered by setting the model opacity anything less that 100%. i.e. I assume the graphics card on the lab machine struggles with opacity. Do you see this on SmartLiver? Do you know what opacity settings you use?

thompson318 commented 2 years ago

Reducing the number of objects rendered with opacity seems to help. i.e. if we just render the liver and not the vessels, tumours etc it seems tolerable.

thompson318 commented 2 years ago

Closing this as it seems to be an issue with the graphic card's ability to render partially opaque geometry. It can be solved by reducing the number of vertices displayed with partial opacity on machines with limited graphics capability.