|
|
|
@ -570,12 +570,13 @@ while True:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
diffT = min(1, t - lastRunTime)
|
|
|
|
|
lastRunTime = t
|
|
|
|
|
# animDuration = 1
|
|
|
|
|
# factor = animDuration
|
|
|
|
|
|
|
|
|
|
metrics = metrics + newMetrics*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
|
|
|
|
|
normalisedMetrics = metrics / (max(255*7 ,np.max(metrics)))
|
|
|
|
|