Blender Git Loki

Git Commits -> Revision 2c2e177

Revision 2c2e177 by Sergey Sharybin (master)
July 17, 2012, 16:22 (GMT)
Feather self-intersection test speed up

Made some minor optimization such as:

- Avoid using "%" operation in loops, replace with a check
for index "overflow".
- Use pre-computed values for scaling feather coordinates
to 0 .. 1 space.

This allowed to reach couple of milliseconds of boost.

Another change is to use higher number of buckets (up to 512).
This doesn't took significantly more memory (like uses only 10MB
of memory for average splines) and allows to have 30-50x boost
for average splines.

Use dynamically calculated number of buckets for this, to be
sure segments would fit two buckets.

Also fixed intersection detection in some cases when edge is
shared between two buckets -- it is possible that such edge
would cross third bucket and intersect edge from there.

Commit Details:

Full Hash: 2c2e1775f9dffac928503ba6fa4307dd726f1d23
SVN Revision: 49004
Parent Commit: 2945ba9
Lines Changed: +97, -26

1 Modified Path:

/source/blender/blenkernel/intern/mask.c (+97, -26) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021