Page 1 of 1

One big image vs multiple love.graphics.print type statements

Posted: Fri Dec 28, 2018 11:53 am
by randy0428
I was experimenting with löve’s print, rectangle, circle and draw functions. The attached screenshot is the result. I thought it looked kind of cool and I’m thinking of making something similar to use as a splash screen for my games.

And I started wondering if it would be better if I create a single image file to use or if it would be better to use the print, rectangle and circle functions. I suspect including the draw function to draw other images would make this question moot, since drawing multiple small images would probably use more resources than 1 large image. -Or am I wrong about this.

Anyway, which would be more efficient, using a single, large graphic image or using 20 (or more) print, rectangle and circle functions?

Re: One big image vs multiple love.graphics.print type statements

Posted: Fri Dec 28, 2018 11:58 am
by Darlex
randy0428 wrote: Fri Dec 28, 2018 11:53 am I was experimenting with löve’s print, rectangle, circle and draw functions. The attached screenshot is the result. I thought it looked kind of cool and I’m thinking of making something similar to use as a splash screen for my games.

And I started wondering if it would be better if I create a single image file to use or if it would be better to use the print, rectangle and circle functions. I suspect including the draw function to draw other images would make this question moot, since drawing multiple small images would probably use more resources than 1 large image. -Or am I wrong about this.

Anyway, which would be more efficient, using a single, large graphic image or using 20 (or more) print, rectangle and circle functions?
If you feel comfortable with the print functions, Do it, if not, Better make a image on some image editor

Re: One big image vs multiple love.graphics.print type statements

Posted: Fri Dec 28, 2018 5:45 pm
by zorg
Efficient is relative; one image will take up more vram on the gpu, but it'll only be one drawcall; many primitive objects or texts are also a bit more expensive but not by much that you couldn't or even shouldn't use them; all that said, it's really up to you.

Re: THANKS - One big image vs multiple love.graphics.print type statements

Posted: Fri Dec 28, 2018 8:49 pm
by randy0428
Thanks Darlex and zorg.