Is there any performance benefit for re-using text object?

Get help using Construct 2

Post » Sat Mar 19, 2016 9:00 pm

Hi!

How does it affect Construct's performance if I create a hundred separate text objects vs. one text object with a hundred instances and an instance variable to separate them?

Will it for example affect the download size of the game?
B
9
S
1
Posts: 97
Reputation: 715

Post » Sat Mar 19, 2016 9:12 pm

I did some testing on the matter and at least 33 text objects vs 1 object with 33 instances didn't seem to affect the download size even a single kb.
B
9
S
1
Posts: 97
Reputation: 715

Post » Sat Mar 19, 2016 9:35 pm

Text object is not a sprite. It is not drawn from some source as Sprite is. Text object is generated on the fly and that's why it does not affect download size. Note that it may look different on various devices since it is generated by the device. As it is not affecting download size, it does affect CPU usage.
ImageImageImage
B
31
S
19
G
82
Posts: 1,038
Reputation: 46,205


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 7 guests