Cache calculated values

This commit is contained in:
DarkPhoenix
2024-11-13 05:57:05 +01:00
parent dbc2993fb9
commit f5743af6a4
2 changed files with 57 additions and 9 deletions

View File

@@ -171,6 +171,7 @@ class TimeCache(FitDataCache):
if addedDmg.total == 0:
return
addedDmg._breachers = {addedTime + k: v for k, v in addedDmg._breachers.items()}
addedDmg._clear_cached()
intCacheDmg.setdefault(ddKey, {})[addedTime] = addedDmg
# Modules