BurkusCat / r6-operator-counters

A website with a graph visualisation of how operators counter each other in Rainbow Six Siege.
https://r6counters.com
MIT License
68 stars 37 forks source link

Bug: Changing counter filters slows down the simulation [Perf] #212

Closed BurkusCat closed 2 years ago

BurkusCat commented 2 years ago

Describe the bug As you check and uncheck the counter-level filter checkboxes, the simulation gradually gets slower and slower. This is because the simulation is running many, many times for each time the checkbox was checked.

To Reproduce Steps to reproduce the behavior:

  1. Repeatedly check and uncheck a filter check box
  2. Observe the simulation and framerate slow down (can be further confirmed with web dev console benchmarks)

Expected behavior Checking a filter checkbox completely resets a simulation with no multiple iterations.

BurkusCat commented 2 years ago

This also occurs when changing image quality