CINPLA / neuronify

An educational neural network app using the integrate-and-fire method.
http://ovilab.net/neuronify
GNU General Public License v3.0
54 stars 12 forks source link

Too rapid firing causes crash #116

Closed andreavs closed 7 years ago

andreavs commented 8 years ago

Seemingly, if two firing animations overlap, the engine crashes. Reproducible by setting speed to max and using a poisson or rythm generator with max rate.

dragly commented 8 years ago

Appears to be caused by the particle Emitter on CurrentSynapse. Perhaps this doesn't handle the large firing rate? Commenting out the emitter.burst(1) in this file fixes the issue, but that also removes the visual signals traveling along the synapses.

Suggestion for hack/fix: Don't call emitter.burst(1) so often. Check the time since last call. If it is less than, say, 100 ms, just skip.

dragly commented 7 years ago

Emitter replaced with items that move along the synapse. Might cost a bit more in terms of performance, but way more stable.