Skip to content
Update Performance and memory optimization authored by Iker Hurtado's avatar Iker Hurtado
...@@ -34,7 +34,9 @@ The percentages represent the final number of vertices relating to the initial o ...@@ -34,7 +34,9 @@ The percentages represent the final number of vertices relating to the initial o
I've also reduce the *radialSegments* of bonds geometry but in this case the gain is small (the number of vertices per bond is smaller and fixed). I've also reduce the *radialSegments* of bonds geometry but in this case the gain is small (the number of vertices per bond is smaller and fixed).
The final implementation add a new variable (the size of the structure, number of atoms) to determine the segments number of the atoms geometry, this is the expression: The final implementation add a new variable (the size of the structure, number of atoms) to determine the segments number of the atoms geometry, this is the expression:
`const nSegments = 5 + Math.ceil(15*(1 - numAtoms/2500)*radius)` `nSegments = 5 + Math.ceil(15*(1 - numAtoms/2500)*radius)`
MEMORY results
... ...
......