schrum2 / MM-NEATv2

MM-NEAT version 2.0 is no longer supported. Please get MM-NEAT 3+ from https://github.com/schrum2/MM-NEAT
Other
11 stars 5 forks source link

Always animate #432

Closed schrum2 closed 7 years ago

schrum2 commented 7 years ago

Before working on #427 attempt the following and see how it looks: Instead of animating each item when the cursor hovers over it, we could simply load all animation frames whenever the next generation button is clicked, and animate all buttons continuously in their own frames. This might impose a slightly longer waiting time after each click, but the visual effect may be worth it, and since each animation is loaded in its own Thread, it may not be too slow after all.

Have a Parameter called "alwaysAnimate" that modifies the evaluateAll method to launch an animation thread for each individual at the start of each generation. Importantly, when this feature is being used, do NOT create a MouseListener for the buttons in the constructor, because this would interfere with the active animations.

Attempt this in the AnimationBreeder first, and then see if it carries over to the object breeder.