You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently projects with multiple shapes drawn can be very slow. This is largely due to draw calls. This can be partially fixed with instancing like seen here: #6276 and in issue #6275, but another effective strategy, especially for those who don't want to deal with more complex things like combining meshes manually or instancing would be to batch the rendering of objects together so that they may be able to be drawn within less drawn calls. This would however be quite the undertaking and require a decently substantial change to p5.js, so if it's not possible or worth it to implement this, I'd understand that too.
The text was updated successfully, but these errors were encountered:
Specifically for the combining multiple meshes into one case, I'm working on something for #5393 that will be able to do that, I'll tag you when I put up a PR so you can see if that addresses some of the use you're thinking of! For now it'd be done on the CPU once upfront to create a p5.Geometry that can be drawn all at once with model(), optimizing mostly for the case where you would be reusing that one combined shape. In the future that could be sped up with webgl2 transform feedback instead of CPU calculations, but maybe you were talking about something more immediate mode than retained mode like that?
Increasing Access
This would increase the speed of projects.
Most appropriate sub-area of p5.js?
Feature enhancement details
Currently projects with multiple shapes drawn can be very slow. This is largely due to draw calls. This can be partially fixed with instancing like seen here: #6276 and in issue #6275, but another effective strategy, especially for those who don't want to deal with more complex things like combining meshes manually or instancing would be to batch the rendering of objects together so that they may be able to be drawn within less drawn calls. This would however be quite the undertaking and require a decently substantial change to p5.js, so if it's not possible or worth it to implement this, I'd understand that too.
The text was updated successfully, but these errors were encountered: