Giter VIP home page Giter VIP logo

Comments (3)

michalochman avatar michalochman commented on July 21, 2024

Hey @JonDum, thanks for your kind words.

I have not yet looked into async rendering (I guess you mean changes introduced in React 16.3+), but my advice for now would be to try to run the initial render in batches instead of rendering all your objects at once.

The other thing is that (from my experience) unless you are preloading the sprites to GPU memory, loading them there on render takes a considerable chunk of time the first render takes to complete.

I will leave this issue open until I'm able to explore React async rendering topic with PixiJS.

from react-pixi-fiber.

JonDum avatar JonDum commented on July 21, 2024

The other thing is that (from my experience) unless you are preloading the sprites to GPU memory, loading them there on render takes a considerable chunk of time the first render takes to complete.

Interesting. I'm only using <Graphics/> and <Text/> objects right now though. However, I think I remember reading that PIXI.Text uses sprites? I wonder if there's a way to batch those with react-pixi-fiber 🤔

my advice for now would be to try to run the initial render in batches instead of rendering all your objects at once.

Do you think that will actually improve the final render time though? Wouldn't the final render (with all objects instead of only a few) take the same time as it would have doing it all once the first time?

from react-pixi-fiber.

michalochman avatar michalochman commented on July 21, 2024

from react-pixi-fiber.

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.