P
ph101
Guest
The manual says:
"Texture batches, are basically bundles of data that are sent all at once to the GPU for rendering. The batch is "broken" when you change a font, a colour, a blend mode, or any other draw status that affects how things are drawn on a global scale, so you should try to limit these things to as few objects"
if you use this:
draw_sprite_ext(s_index,di_index,xx,yy,1,1,0,col,alpha)
Say if you change col from c_white (i.e. draw sprite as is normal) to say c_red does that break the batch? Or does manual mean only draw_set_colour.
Is there a list of functions that break the texture batch?
Thanks
.edit - for typos.
"Texture batches, are basically bundles of data that are sent all at once to the GPU for rendering. The batch is "broken" when you change a font, a colour, a blend mode, or any other draw status that affects how things are drawn on a global scale, so you should try to limit these things to as few objects"
if you use this:
draw_sprite_ext(s_index,di_index,xx,yy,1,1,0,col,alpha)
Say if you change col from c_white (i.e. draw sprite as is normal) to say c_red does that break the batch? Or does manual mean only draw_set_colour.
Is there a list of functions that break the texture batch?
Thanks
.edit - for typos.
Last edited by a moderator: