[R100] Setting webfont causes lag!

Bugs will be moved here once resolved.

Post » Sun Sep 02, 2012 4:46 pm

Hello!

Link to project page!

This is a bug in Construct r100 that occurs in Firefox but not in Chrome. See all the text objects at the right of this screen? (see link to project) Within a 'every tick' event, I set the web font of these text objects to a font named 'Electrolize'. Because it keeps repeating this action, the whole game is lagging. (See the FPS rate!)

Of course this can be solved by triggering the event only once, but I'm reporting this bugs because the lag didn't occur in the previous versions of Construct 2.

Note: I only tested this with Firefox and Chrome. Chrome is working perfectly fine.

Link to project page!
B
21
S
6
G
3
Posts: 64
Reputation: 2,924

Post » Mon Sep 03, 2012 5:24 pm

Can you share your .capx? I cannot test if any fixes for this work without it.

That's odd, the 'Set web font' action is coded to ignore redundant calls such as when setting every tick. But I guess using a potentially slow action 60 times a second is partially your fault as well!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Mon Sep 03, 2012 8:06 pm

B
21
S
6
G
3
Posts: 64
Reputation: 2,924

Post » Wed Sep 05, 2012 3:32 pm

Thanks for the report, found a workaround for Firefox and should run at 60 FPS in the next build. But I still don't advise you do things like this every tick!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest