Fix 'fade'
This commit is contained in:
parent
895e12c034
commit
5212e3aab2
1 changed files with 2 additions and 1 deletions
|
@ -570,12 +570,13 @@ while True:
|
||||||
|
|
||||||
|
|
||||||
diffT = min(1, t - lastRunTime)
|
diffT = min(1, t - lastRunTime)
|
||||||
|
lastRunTime = t
|
||||||
# animDuration = 1
|
# animDuration = 1
|
||||||
# factor = animDuration
|
# factor = animDuration
|
||||||
|
|
||||||
metrics = metrics + newMetrics*diffT
|
metrics = metrics + newMetrics*diffT
|
||||||
newMetrics *= (1-diffT)
|
newMetrics *= (1-diffT)
|
||||||
print('MAXES', np.max(metrics), np.max(newMetrics), diffT)
|
print('MAXES', np.max(metrics), np.max(newMetrics), diffT, t - lastRunTime)
|
||||||
|
|
||||||
# smooth impact of first hits by having at least 0.05
|
# smooth impact of first hits by having at least 0.05
|
||||||
normalisedMetrics = metrics / (max(255*7 ,np.max(metrics)))
|
normalisedMetrics = metrics / (max(255*7 ,np.max(metrics)))
|
||||||
|
|
Loading…
Reference in a new issue