-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve WebGL beginShape() performance when only drawing triangles #6440
Comments
Alternatively, translating this to |
I looked into the issue and i was trying to come up with a solution following you suggestion. do you thing i can work something with this.
this is like pesudo code.`` |
I think so! The check for duplicate vertices is probably more trouble than it's worth, so I think just checking for three vertices will be sufficient. |
@davepagurek @Gaurav-1306 how to setup the project please help ,where is the documentation |
this is where you can get stepwise documentation for the setup. don't forget to checkout the documentation folder for more details about the areas. |
@Gaurav-1306 thanks a lot bro |
@Gaurav-1306 is there community channel like slack of processing |
Increasing Access
The default shape mode, TESS, can handle more complicated shapes, but can be an unnecessary performance slowdown when only drawing triangles. We can detect this case and speed up performance so sketches hitting this bottleneck run fast again.
Most appropriate sub-area of p5.js?
Feature request details
This would involve, when
endShape
is called, changing the shape mode toTRIANGLES
if only 3 vertices were supplied.The text was updated successfully, but these errors were encountered: