Giter Site home page Giter Site logo

Comments (7)

Thel27 avatar Thel27 commented on August 19, 2024 1

I found the solution to my problem. That was just the structure of my objects.
In my case, it is better to create only one "Graphics" object for a Block.

So this sentence :

It's better for batching to use many Graphics objects instead of a single Graphics with many shapes.

At pixi js doc isn't always true.

In my case, I will have interactivity for the whole block and not for the all shapes in the block.
Doing a Graphics by shapes is really to greedy.

So I think Smooth-Graphics doesn't perform as well as a default Graphics object but It's still not that bad. For the majority of cases, It will do the job.

Hope it helps someone ;)

from graphics-smooth.

ivanpopelyshev avatar ivanpopelyshev commented on August 19, 2024

Looks awesome! The plugin was created specially for CADs

Do you use dashed lines? if so, update the plugin, we fixed it 2 weeks ago, @dev7355608

0.0.30 at npm:
https://www.npmjs.com/package/@pixi/graphics-smooth

Otherwise, it looks like its actual "10k bunnies problem" and you need special help with it.

from graphics-smooth.

Thel27 avatar Thel27 commented on August 19, 2024

Hi @ivanpopelyshev, thanks for the fast answer.

Do you use dashed lines? if so, update the plugin, we fixed it 2 weeks ago, @dev7355608

No I don't use smooth graphic dashed lines, I created my own function because I used PIXI.Graphics before (and had no perf problems).
Do you think it can be related ?

Otherwise, it looks like its actual "10k bunnies problem" and you need special help with it.

Do you have any tips to help me with that ?

from graphics-smooth.

dev7355608 avatar dev7355608 commented on August 19, 2024

@ivanpopelyshev Would you say that uniforms updates having such a high impact on performance is unusual? I've noticed this too and always thought it's just a bottleneck of the current implementation, which seems to involve a lot of uniform updates.

from graphics-smooth.

ivanpopelyshev avatar ivanpopelyshev commented on August 19, 2024

Yeah, we didnt add batching and stuff yet ) Though it doesnt have bound textures so it should be fast.. the only exception is uniform binds which we have to swap to something else

from graphics-smooth.

Thel27 avatar Thel27 commented on August 19, 2024

Hello, I just have a small question about the development of the "Graphic Smooth" plugin
Do you know when batching will be added ?
As I am making a clone of AutoCAD WebApp, I need a very good performance

from graphics-smooth.

ivanpopelyshev avatar ivanpopelyshev commented on August 19, 2024

Unfortunately, I dont have free time those months

Go to pixijs repo , add issue/discussion with bounty on it, someone will take it. Alternatively, ask guys in discord whether anyone wants to take it.

from graphics-smooth.

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.