This is a small fix that speeds up render-goldens considerably (several x). Instead of opening a new browser for each scenario, we keep the browser open and simply update the model we're rendering. I also swapped the loops so it goes through all scenarios on a single renderer before switching to the next renderer, thereby keeping the same renderer in memory until it's finished.
@emackey this should make it a lot less annoying to render new goldens. And be sure to make use of the --scenario=... system to matching one or several specific scenarios, when you only want to update those.
This is a small fix that speeds up
render-goldens
considerably (several x). Instead of opening a new browser for each scenario, we keep the browser open and simply update the model we're rendering. I also swapped the loops so it goes through all scenarios on a single renderer before switching to the next renderer, thereby keeping the same renderer in memory until it's finished.@emackey this should make it a lot less annoying to render new goldens. And be sure to make use of the
--scenario=...
system to matching one or several specific scenarios, when you only want to update those.