flyxiv / ffxiv_simbot_issues

0 stars 0 forks source link

More Optimization #9

Closed flyxiv closed 1 week ago

flyxiv commented 1 week ago

More optimization can be done. Cloning and making result graph takes too long.

1) We can copy only the needed info: skill and debuff's stacks and cooldown for simulating to minimize cloning size 2) We can precalculate damage statistics as we make the damage log

flyxiv commented 1 week ago
Screenshot 2024-09-02 at 9 11 55 PM
flyxiv commented 1 week ago

Get only essential parts of skill/buff/debuffs: 25% speed boost

Instead of getting the whole AttackSkill/BuffStatus/DebuffStatus, we get only the needed items, reducing clone size to 1/3

flyxiv commented 1 week ago

Now we need to optimize damage calculation

Screenshot 2024-09-02 at 10 59 38 PM
flyxiv commented 1 week ago

after nin optimize 26s ( 30% improvement)

Screenshot 2024-09-02 at 11 16 34 PM
flyxiv commented 1 week ago

now 20s

Screenshot 2024-09-02 at 11 55 03 PM
flyxiv commented 1 week ago

cache skill_cooldown == 0 and skill_delay_milliseconds == default cases