KhronosGroup / glTF-Render-Fidelity

Apache License 2.0
9 stars 2 forks source link

speed up golden rendering #3

Closed elalish closed 5 months ago

elalish commented 5 months ago

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.