Behaviour: Wiggle/Shake score change threshold

Started by Crashguard303

Crashguard303 Lv 1

As I learned, some users run fold.it minimized.
My idea is, to create a threshold slider in the beviour bar, which makes shake or wiggle automatically stop gererally, if there is no change in score, or smaller than the selected amount.
This would speed up all scripts at once, LUA and regular scripts and lower excessive CPU using duration.

regards,
Alex

Crashguard303 Lv 1

The threshold value should work as absolute value, as there are some rebuild/clashing importance scripts, which cause the score to drop (because they must).

Crashguard303 Lv 1

The only way to speed things up at the moment works like this (global wiggle as example):

function xwiggleall(iter,threshold)
curr_iter=0
exit_condition=false
repeat
curr_iter=curr_iter+1
tempScore=get_score()
do_global_wiggle_all(1)
tempScore2=get_score()
if (iter>0) and (curr_iter==iter) then exit_condition=true end
if abs(tempScore2-tempScore)<threshold then exit_condition=true end
until exit_condition==true
end – function

where abs() returns an absolute value.
And you see here again, that it won't work if the puzzle score are below 0.