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
Likely GD needs to have configurable warnings for dev and prod, which is a separate issue, but this is a big one for performance.
If in drawing one frame we gl.useProgram X, gl.useProgram Y, and then at any later point in drawing that frame call gl.useProgram X again, GD should issue a (one time per program run?) warning that it's more efficient to batch all draw calls by program, and highlight that we've useProgram'd X (likely a case for a :name or :id key on programs for debugging) at least twice in one frame. Help newbs (like yours truly) avoid making obvious perf mistakes, especially ones that they may not be aware of.
The text was updated successfully, but these errors were encountered:
Likely GD needs to have configurable warnings for dev and prod, which is a separate issue, but this is a big one for performance.
If in drawing one frame we
gl.useProgram X
,gl.useProgram Y
, and then at any later point in drawing that frame callgl.useProgram X
again, GD should issue a (one time per program run?) warning that it's more efficient to batch all draw calls by program, and highlight that we'veuseProgram
'dX
(likely a case for a:name
or:id
key on programs for debugging) at least twice in one frame. Help newbs (like yours truly) avoid making obvious perf mistakes, especially ones that they may not be aware of.The text was updated successfully, but these errors were encountered: