Pausing On Focus Loss

Hi All,

Is it possible to not have PlayCanvas pause when it loses focus?

Thanks,
Scott

When you say lose focus, do you mean when you switch to another tab?

We use requestAnimationFrame to run our update loop. This is designed to stop updating when the tab is not visible to save processing power and battery. There is currently no way to prevent this. It is possible to create the loop using setTimeout or similar but it’s generally not recommended.