Font vs Sprite Memory Question

Discussion and feedback on Construct 2

Post » Thu Aug 20, 2015 6:14 pm

What uses more memory - 100 sprites that are 300x58 pixels or loading 25 different typefaces for font objects?

Thanks,
B
19
S
3
Posts: 62
Reputation: 1,764

Post » Thu Aug 20, 2015 7:59 pm

It's an unanswerable question as it depends on how big the typefaces are, how many characters there are on each etc. Also, I believe C2 uses PNG format throughout, and some things compress better than others.

Probably your main issue is going to be the amount of graphic memory that there are on some older phones. I would seriously suggest having fewer typefaces - maybe use effects if you want different colours, and not having sprites that big. Can your sprites be broken up into smaller sprites that can be reused ?
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Fri Aug 21, 2015 11:07 am

In WebGL mode normal Text objects render their text via a WebGL texture, so the answer actually depends on how many Text instances you use. I'd suggest making your own measurements to compare them.
Scirra Founder
B
399
S
236
G
89
Posts: 24,525
Reputation: 195,382


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests