Giter Club home page Giter Club logo

Comments (6)

SBenni avatar SBenni commented on May 28, 2024 1

Find out the problem in package.json for production build
Very fast:
">1%",
performanceFast

Very slow:
">0.2%",
performanceSlow

from react-konva.

lavrton avatar lavrton commented on May 28, 2024

I don't see a difference on my machine.

from react-konva.

lavrton avatar lavrton commented on May 28, 2024

BTW. Instead of using visible=false on a Konva node, it will be better to remove if from the scene. Like this:

  function createTimebarTextItem(xId, xVisible, x, y, xWidth, xTask) {
    if (!xVisible) {
      return null;
    }
    return (
      <TimebarTextItem
        key={xId}
        index={xId}
        x={x}
        y={y + 25}
        title={xTask.title}
        visible={xVisible}
        timebarTextRefs={timebarTextRefs}
        width={xWidth}
      ></TimebarTextItem>
    );
  }

When you change a transform attribute of any container (like y of Layer), Konva is doing plenty of recalculations. Even for invisible nodes. So removing that should be simpler for Konva to handle.

from react-konva.

SBenni avatar SBenni commented on May 28, 2024

http://myplanner365.s3-website.eu-central-1.amazonaws.com/

This is the same project build by react-scripts build

performance

from react-konva.

lavrton avatar lavrton commented on May 28, 2024

I don't know. That url works good to me. I have the same 13fps, when I set 4x CPU slowdown.

from react-konva.

SBenni avatar SBenni commented on May 28, 2024

okay, seems to be a problem by my pc, on another machine the problem doesn't exists, sorry!

from react-konva.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.