Text blinking after updating to latest Trial version

All things HTML5 or text based engines, or really any web based engines.
Post Reply
Risse
Posts: 1
Joined: Sat Sep 28, 2013 9:23 am

Text blinking after updating to latest Trial version

Post by Risse »

I used to develop using a version from the GitHub couple of months ago. Now I noticed that you have released the full source code. Awesome! I updated the code and was pleasantly surprised that everything seemed to work okay :)

But I have a problem updating a IgeFontEntity.

So in the old code, I have a IgeFontEntity that is updated on every tick. I just use the basic text()-function to update the text (so like ige.client.someText.text('new text');)

I now updated the code and it still works, but the text blinks a lot. It feels like every second tick the field goes empty and it comes back.

Is there anyway to make the text change more performant?
foolmoron
Posts: 25
Joined: Wed Sep 11, 2013 3:34 pm

Re: Text blinking after updating to latest Trial version

Post by foolmoron »

I get the same thing.
signature
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Text blinking after updating to latest Trial version

Post by coolbloke1324 »

Thanks for letting me know, that definitely sounds like a bug. I'll look at the font class and see if I can reproduce the issue.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
foolmoron
Posts: 25
Joined: Wed Sep 11, 2013 3:34 pm

Re: Text blinking after updating to latest Trial version

Post by foolmoron »

By the way, from what I've found, it's a caching issue.

Go to IgeFontEntity.js and comment out line 19 to disable font caching, and it renders smoothly. As for why caching makes it blink, I don't know, but if someone needs a quick fix, try this. Shouldn't hurt your performance too much unless you've got text everywhere.
signature
foolmoron
Posts: 25
Joined: Wed Sep 11, 2013 3:34 pm

Re: Text blinking after updating to latest Trial version

Post by foolmoron »

Speaking of font entities, I noticed that textAlignY doesn't work at all. Looking at IgeFontSmartTexture.js, textAlignX is implemented, but textAlignY is not. I tried a really simple solution similar to how textAlignX is handled, but that didn't look right. I'm guessing it's slightly more complicated to do vertical align.
signature
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Text blinking after updating to latest Trial version

Post by coolbloke1324 »

I think this is due to the cache not being re-rendered on the same frame as it is updated so there is a single frame of blank render.

I am working on a fix now...
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Text blinking after updating to latest Trial version

Post by coolbloke1324 »

This bug is now fixed in the latest dev branch version v1.2.2@13-10-05.002 available to premium license holders.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Post Reply

Return to “HTML5/Web Engines”