Page 1 of 1
Text blinking after updating to latest Trial version
Posted: Sat Sep 28, 2013 10:02 am
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?
Re: Text blinking after updating to latest Trial version
Posted: Sun Sep 29, 2013 1:55 am
by foolmoron
I get the same thing.
Re: Text blinking after updating to latest Trial version
Posted: Sun Sep 29, 2013 8:45 pm
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.
Re: Text blinking after updating to latest Trial version
Posted: Wed Oct 02, 2013 10:10 pm
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.
Re: Text blinking after updating to latest Trial version
Posted: Wed Oct 02, 2013 10:54 pm
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.
Re: Text blinking after updating to latest Trial version
Posted: Sat Oct 05, 2013 2:10 pm
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...
Re: Text blinking after updating to latest Trial version
Posted: Sat Oct 05, 2013 2:28 pm
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.