Moerill / fvtt-find-the-culprit

MIT License
8 stars 10 forks source link

Better algorithm #24

Open geoidesic opened 2 years ago

geoidesic commented 2 years ago

I get the idea – process of elimination. However, sometimes a problem is caused by a combination of modules. The current algorithm can't detect those.

Instead of always only loading half of the next group, I recommend an accumulation strategy instead.

  1. Disable all modules - does it persist?
  2. Y? : Disable half the modules – does it persist? 3: Y? : Load all the ones that were in the negative group (i.e. not persist group) plus half the ones in the positive group (i.e. does persist group).

It takes a bit more tracking as you have to keep track of which groups and combinations were positive and which negative at various stages but with this strategy one should be able to isolate problematic combinations of modules also.