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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
randy0428
Citizen
Posts: 51
Joined: Sun Jul 31, 2016 10:19 am

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

Post 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?
Attachments
splash_idea.png
splash_idea.png (61.8 KiB) Viewed 3370 times
Darlex
Party member
Posts: 128
Joined: Sun Sep 24, 2017 10:02 am
Location: Chile
Contact:

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

Post 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
Hi! I wish you have an amazing day!
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

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

Post 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.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
randy0428
Citizen
Posts: 51
Joined: Sun Jul 31, 2016 10:19 am

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

Post by randy0428 »

Thanks Darlex and zorg.
Post Reply

Who is online

Users browsing this forum: slime and 4 guests