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.

AppGameKit Studio Chat / A sprite and memory usage question

Author
Message
haliop7
2
Years of Service
User Offline
Joined: 1st Mar 2022
Location:
Posted: 13th Mar 2024 10:29
IF i have 1000 sprites sized at 1,1 at the init of them.

when i use or see them at real time, i want to resize them into their real values.

would this work better?

I wonder.
I can test it but really get a good answer, asking the mods or anyone who knows it could work.

Ty for your time.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Mar 2024 15:19
How are the sprites being used? Are they going to change size regularly? If not, just set them to the size you need at the beginning, you're not saving anything by making them 1x1. It could affect frame rates if you're drawing 1000 sprites at larger sizes but if that's the case you're better off hiding the ones you don't want rather than shrinking them.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda
Pixel-Perfect Collision

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-05-02 23:14:50
Your offset time is: 2024-05-02 23:14:50