02-20-2016, 03:06 AM
(This post was last modified: 02-20-2016, 03:07 AM by Trainzland.)
The SplineClass is used for each Spline.
In PlayMode=true and Build doUpdate(); is called every frame for each Spline!
At last in Update().
I automatically lay spline in same quantity as my last Addon. About 1500 Splines.
Update( DoUppate() ), LateUpdate() and FixedUpdate(50 times per frame ) is now called ~7500 times per frame.
The corious thing is:
DoUpdate() calls Refresh() and Refresh() itself calls if (mDirtyCurve) permanetely. No matter of mDirtyCurve = false; before return;
All the cache points will be updated, CP's will be sorted, etc.... in every frame for each spline permanetely :-)
For my self, my spline structure is fixed in build. And I need only the SplineControllers to run.
Does it happen because of the Dev version 2.0.5 you testing some stuff?
In PlayMode=true and Build doUpdate(); is called every frame for each Spline!
At last in Update().
I automatically lay spline in same quantity as my last Addon. About 1500 Splines.
Update( DoUppate() ), LateUpdate() and FixedUpdate(50 times per frame ) is now called ~7500 times per frame.
The corious thing is:
DoUpdate() calls Refresh() and Refresh() itself calls if (mDirtyCurve) permanetely. No matter of mDirtyCurve = false; before return;
All the cache points will be updated, CP's will be sorted, etc.... in every frame for each spline permanetely :-)
For my self, my spline structure is fixed in build. And I need only the SplineControllers to run.
Does it happen because of the Dev version 2.0.5 you testing some stuff?
(Henry Ford) Each hour more of searching is each hour less of your live time.