Page: https://sparkjs.dev/examples/multiple-viewpoints/index.html
See screenshot below, the page has been running for a few seconds and it appears to create a new perspective camera every frame despite the example viewport camera being passed in
Instead of instanceOf you probably want to check for isCamera (or isPerspectiveCamera)