enricosapicco Posted November 11, 2016 Share Posted November 11, 2016 I am making a slot game and used tiling sprite for reels. It works fine but when I spin the slot and switch the tab on chrome, it doesn't keep running. When I switch it back to the game tab, it continues from the previous state before tab change. I assume framework or webGL is doing it just to enhance performance and not to use resources when the tab is inactive. But players may want to play with autoplay and switch the tab during it. So is there any known way to keep it running when the tab is passive? Quote Link to comment Share on other sites More sharing options...
xerver Posted November 11, 2016 Share Posted November 11, 2016 Are you using requestAnimationFrame? because that loop does not run when the tab is not in focus. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.