thijsjanzen / onco_viral_sim

0 stars 0 forks source link

Speed up display #9

Closed thijsjanzen closed 4 years ago

thijsjanzen commented 4 years ago

Right now, each time the grid is displayed, each cell is individually asked for it's node type and the image is updated. This seems inefficient - rather, updating the cell in the image each time the cell is changed could be more efficient.

In the branch 'observer' I have implemented exactly this, and the results are:

test1: 'full', max_time = 30, speed = minimum

test2: 'grow' max_time = 1000, speed = maximum

So it seems, that this update to the code does not yield improved speed.