Skip to content

Chain Splines Performance Boost!

Latest
Compare
Choose a tag to compare
@BlizzCrafter BlizzCrafter released this 05 May 08:46
· 6 commits to master since this release

ADDED:

  • InitializeSplineControlSample() added so that corresponding SplineSampleControls are getting correctly re-initialized after tab page switches.
  • Added TangentColor to better seperate it from the rest of the spline colors.
  • The solution now supports Visual Studio 2022.

CHANGED:

  • It's now possible to add a float factor value to the Add/Substract Tension and Bias functions of the HermiteSpline type.
  • Changed the default spline generation function "Reset()" to form a "C" symbol instead of a "Z" symbol now by default.
  • The HermiteSplineControl sample now shows more possibilites of creating a custom HermiteSpline using Tension, Bias and modifying Tangents just by code (programmatically).
  • Only Rotate, Scale and ScaleRotate if the value is not 0.
  • Calling SetSplineMarkerResolution() also updates the SplineStepDistance from now on, which gives a huge performance boost when drawing curves of splines.
  • Applied modifications to the ChainSplineControl project to enable performance tests in the ChainSplineControl.
  • CenterSplineColor is now Magenta for better visibility.
  • Updated the MonoGame version of all projects.
  • Updated nuspec files and nuget packages.

FIXED:

  • FindNearestPoint fixed end of spline wasn't detected correctly - by adding a small value to the MaxProgress() function.