Skip to content
Snippets Groups Projects
  1. Jun 11, 2017
  2. Jun 10, 2017
    • faiface's avatar
      one more tiny doc change · e6484064
      faiface authored
      e6484064
    • faiface's avatar
      minor doc changes · 3fcad750
      faiface authored
      3fcad750
    • Seebs's avatar
      Improve normal calculations · f2ef87f1
      Seebs authored
      Soooo. It turns out that the bunch of smallish (~4-5% of runtime)
      loads associated with Len(), Unit(), Rotated(), and so on... Were
      actually more like 15% or more of computational effort. I first
      figured this out by creating:
      
      	func (u Vec) Normal(v Vec) Vec
      
      which gives you a vector normal to u->v. That consumed a lot
      of CPU time, and was followed by .Unit().Scaled(imd.thickness / 2),
      which consumed a bit more CPU time.
      
      After some poking, and in the interests of avoiding UI cruft,
      the final selection is
      	func (u Vec) Normal() Vec
      
      This returns the vector rotated 90 degrees, which turns out to
      be the most common problem.
      f2ef87f1
  3. Jun 09, 2017
    • faiface's avatar
      minor, mostly stylistic, changes · 6b9ea45e
      faiface authored
      6b9ea45e
    • Seebs's avatar
      Simplify Matrix math, use 6-value affine matrixes. · 34cdd872
      Seebs authored
      It turns out that affine matrices are much simpler than the 3x3 matrices
      they imply, and we can use this to dramatically streamline some code.
      For a test program, this was about a 50% gain in frame rate just from
      the cost of the applyMatrixAndMask calls in imdraw, which were calling
      matrix.Project() many times. Simplifying matrix.Project, alone, got a
      nearly 50% frame rate boost!
      
      Also modify pixelgl's SetMatrix to copy the six values of a 3x2
      Affine into the corresponding locations of a 3x3 matrix.
      34cdd872
  4. May 21, 2017
  5. May 14, 2017
  6. May 05, 2017
  7. Apr 13, 2017
  8. Apr 04, 2017
  9. Mar 25, 2017
  10. Mar 23, 2017
  11. Mar 18, 2017
  12. Mar 15, 2017
  13. Mar 14, 2017
  14. Mar 13, 2017
  15. Mar 06, 2017
  16. Mar 05, 2017
  17. Mar 01, 2017
  18. Feb 25, 2017
Loading