Comments (7)
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.
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.
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.
@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.
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.
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.
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)
- Is there a plan to support batching of multiple graphics elements? HOT 4
- The graph is scaled and the actual graph width remains the same HOT 2
- BeginHole PIXI. Smooth. SmoothGraphics whether can support HOT 1
- Draw arcs, arcs are not smooth, please confirm whether you can support arcs to be more smooth HOT 2
- Draw a circle, the circle is not smooth, please confirm whether the circle can be more smooth HOT 1
- When the image scale is reduced by 20 times, the green RGB(0,255,0) changes to the dark green RGB(0,76,0). HOT 1
- After using Graphic to draw graphics, you can directly use graphic.pluginname to change the color without redrawing. With SmoothGraphics, you can't change the color directly HOT 1
- SmoothGraphics is used to draw a circle, which is composed of many points. The circle is not smooth after being magnified, and the amount of data is very large. HOT 1
- Setting graphic.interactive = true, gives errors HOT 10
- Support Pixi 7 HOT 2
- Using graphics-smooth with pixi-legacy 6.5 with typescript won't build HOT 2
- This plugin does not appear to support pixi devtool HOT 3
- Is this available in a CDN? HOT 2
- OMG This is AMAZING. Game Changing. Is it possible to Beazer some parts of the line. HOT 3
- A couple questions about the implementation of smooth scrolling and quadraticCurveTo HOT 2
- `utils.premultiplyTint` deprecated HOT 1
- Mask support HOT 1
- Colour bleed from underneath lineStyle border HOT 1
- Type error for SmoothGraphics in renderer.generateTexture
- Will this be for version 8 pixi as of v8.0.0-beta.6 it is not working HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphics-smooth.