Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Multiple small textures vs. single large texture...

Author
Message
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 5th Nov 2004 10:06
I was working on a new GUI, and am wondering which is the most efficient way to code part of my menu. Which of these would be better?

8 256x256 textures on 8 plains
1 1024x1024 texture on one plain

I know the 256x256 images, when added up, have half as many pixels, but would it take up other resources, having more images?

If no one has had experience with this situation, I will just go with the 8 pics because that is what my mind is telling me to do...

Xander Moser - Bolt Software - Firewall
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 5th Nov 2004 11:50
Another option is to use smaller images to texture a scaled plain.
Lee and Rick would say "use sprites with smaller textures and rescale them" . Another problem with using plains is they will look different on different screen resolutions while sprites are more
uniform. I prefer plains as the screen refresh rate is better than with sprites. But, if only using a few sprites .....

Hope I "completely" answered your Q and gave you more to think on.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 5th Nov 2004 11:51
I reccomend using one smaller image per button.

this allows you to make a graphic for each button and to adjust each one accordingly. It also prevents any dramas with lower end cards who cant read 1024 sizes.

I even go to the extent of pasting text as a graphic with DBP over the standard background button image so its even easier to make buttons from one graphic used many times.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 5th Nov 2004 23:24
Waffle: I can't use any smaller than 128x128 for clarity reasons. I need my menu to look nice... Actually, plains are better than sprites in my view because you can switch screen resolutions and it will still be exactly the same, position-wise. With sprites, you have to adjust for screen resolution. Yeah, like you said, plains are much faster too.

Indi: I already use a couple of 1024x1024 pics, but a few more could really suck up the memory like you said...

Thanks, I have decided to use multiple smaller images.

Xander Moser - Bolt Software - Firewall

Login to post a reply

Server time is: 2025-05-18 04:33:04
Your offset time is: 2025-05-18 04:33:04