"Set text" on CocoonJs

Bugs will be moved here once resolved.

Post » Mon Feb 23, 2015 7:33 pm

Problem Description
Every time I SET TEXT on my game, if I'm running my game on CocoonJs (iPhone or Android devices), I get some drawbacks... the game freezes a little bit, so its performance is imparied.

My code is like:
Every 1 second > set text SCORE
(where SCORE is a variable)

This bug is on mobile device, when I use CocoonJS.
When I test on my PC, I don't get this drawback.

I'm using the latest stable version of Construct2.
Posts: 1
Reputation: 177

Post » Tue Feb 24, 2015 11:46 am

Closing, please follow the bug report guidelines. Also note CocoonJS Canvas+ is no longer supported, only Webview+ is, but you didn't specify which you are using. Further, note this section from Performance Tips:

Changing Text objects every tick
Change the size or text of a Text object every tick - even just for an animation or transition - will likely produce poor performance, especially on mobile devices. The problem is even worse if the text object is large. Text rendering is very fast as long as the object is not changing, but upon changing the object must do a relatively expensive redraw of the text and replacement of the cached texture. Try to use small Text objects that do not change regularly. If you must change text regularly, consider using a Sprite Font instead, which is fast even when it changes every tick.
Scirra Founder
Posts: 25,089
Reputation: 199,786

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests