I want to implement the following logic (this may sound strange, but to me it feels like a decent idea).
Several months ago I asked this question, and the solution with pixelRatio
still seems quite ok. But iPhones and some Android devices have much better performance than mine, so I want to let them render my scene in a better quality. The idea is, I want an adaptive pixelRatio
: determine the current FPS, and if it is low enough, re-render the scene again with a lower pixelRatio
.
I'm not using requestAnimationFrame
explicitly anywhere in the project, so I cannot obviously use this approach. I was wondering if Konva had any API for this purpose - or some hooks/events I could attach to in order to measure FPS.
Or maybe this is a bad idea and I should give up on it?