Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8513247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:30:36+00:00 2026-06-11T04:30:36+00:00

I am starting three (or more) Kinetic.Stages on a webpage. When I start my

  • 0

I am starting three (or more) Kinetic.Stages on a webpage. When I start my first stage alone, it works as normal.

But, when I start any stage afterwards, the first call to frame.timeDiff in onFrame() returns a huge value (one million, million).

What could be causing this?

window.onload = function() {
    var stage1 = new Kinetic.Stage({
        container: "widget1",
        width: 10,
        height: 10
    });

    stage1.onFrame(function(frame) {
        console.log(frame.timeDiff);
    }

    stage1.start();


    var stage2 = new Kinetic.Stage({
        container: "widget2",
        width: 10,
        height: 10
    });

    stage2.onFrame(function(frame) {
        // empty
    });

    stage2.start();


    var stage3 = new Kinetic.Stage({
        container: "widget3",
        width: 10,
        height: 10
    });

    stage3.onFrame(function(frame) {
        // empty
    });

    stage3.start(); 
};

As long as only one stage is started, it works as normal, but as soon as any other stage is started as well, the frame time becomes huge. Re-arranging the starts and initialisations does not change anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:30:38+00:00Added an answer on June 11, 2026 at 4:30 am

    Are you using Chrome? I experienced problems when going between tabs in chrome. (the frame.timeDiff became huge. Since Chrome doesint pause the javascript (i think).

    I solved this by adding: var timeDiff = Math.min(frame.timeDiff, 50);

    Hope this is to any help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any difference between starting a program file with any of those? #!/usr/bin/env
Is there any attribute associated with the starting time I can get from the
I am just starting out with writing jQuery plugins. I wrote three small plugins
I’m trying to figure out how Vec3b works for Opencv (but I think that
Hi i'm starting to work with webGL using Three.js and I need to detect
I'm new to sanitizing input data, but we are starting to ramp up with
Is there a more pythonic way of converting excel-style columns to numbers (starting with
i am currently starting to learn Xcode and objective-c and i am reading three
I have setup a container and three divs inside. First two are floated and
Is there a way in Android (starting with API 8) to create a service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.