Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Speedup rendering of 3D brick elements #79

Open
u-anurag opened this issue Aug 20, 2020 · 3 comments
Open

Speedup rendering of 3D brick elements #79

u-anurag opened this issue Aug 20, 2020 · 3 comments
Assignees
Milestone

Comments

@u-anurag
Copy link
Owner

Check for repeated plotted surfaces.

@u-anurag u-anurag added this to the Release #2 milestone Aug 20, 2020
@u-anurag u-anurag self-assigned this Aug 20, 2020
@cslotboom
Copy link
Collaborator

Something that might help here is the opacity of elements. As a test it might be worth making the elements fully opaque to see if that speeds things up at all.

@u-anurag
Copy link
Owner Author

I have tried some things. Printing node and element tags slows things down. In this particular case, opacity does not make much difference in the rendering speed. I am working on this and will soon try the revised code.

@cslotboom
Copy link
Collaborator

cslotboom commented Aug 21, 2020

Okay, good to know.

I did some testing awhile ago on performance. Something that made a big difference was cutting out the for loop.

For example:

plt.plot(*lines)

instead of:

for line in lines:
    plt.plot(line)

Can be much faster. However, it can be difficult to formulate the code to do this.
It works decently for lines, but other objects might be trickier.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants