Jump to content

HTML5 Script stops


terence01
 Share

Recommended Posts

  • 2 weeks later...

Is that HTML5 version using Swiffy? It appears to be using requestAnimationFrame to fire each frame, this by its nature will pause when the tab is not active. If your code was based on an actual timestamp you wouldn't have an issue, since the amount time passed wouldn't be dependent on the number of frames drawn. You could look into modifying Swiffy to always use setTimeout even when requestAnimationFrame is available, as that would act just as flash does, and run no matter what.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...