when the system first time display some unicode text like "汉字" or "漢字" that never appears since application was executed,there will be a serious lag for one or two seconds.this is a big trouble, is there a way to slove it or any workaround?
thanks!
serious lag when display unicode characters at the 1st time
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: serious lag when display unicode characters at the 1st time
Yeah, this is a known issue. The only work-around is to render some text using those glyphs as part of app initialisation so the texture pages get pre-generated (where such a lag is not so much of an issue, though I agree it's not ideal).
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: serious lag when display unicode characters at the 1st time
so do we have some interface like "void XXX::preRenderText(string)",or we have to set the text to a ui element like StaticText?
i looked up the Font and FontManager,it seems there`re not such a interface to do this job...
i looked up the Font and FontManager,it seems there`re not such a interface to do this job...
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: serious lag when display unicode characters at the 1st time
Yeah you have to actually render it unfortunately (you can clear the screen again straight afterwards, so it doesn't have to be actually visible). We used to have a mechanism whereby you could specify glyphs, and ranges of glyphs, to be used with a font, but this got removed some time ago as part of a patch - and as I've mentioned before - this was a big, big mistake and should never have happened. Eventually we'll add this type of function back, though we've not got there yet
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: serious lag when display unicode characters at the 1st time
i understand.thank you CE.
Re: serious lag when display unicode characters at the 1st time
Do we have any preRenderText functions now
It is serious lag when I display unicode characters at first time.
Therfore, our project's TL asks me to pregenerate all textures of the default font at init step.
What should I do if no function can help me to do this job inCEGUI:font?
According to the past articles,
It seems like I need to know what unicode characters I will use, then rendering these by a StaticText at beginning.
Is there any better solutions you could teach me?
Thank you very much.
XJ.
It is serious lag when I display unicode characters at first time.
Therfore, our project's TL asks me to pregenerate all textures of the default font at init step.
What should I do if no function can help me to do this job inCEGUI:font?
According to the past articles,
It seems like I need to know what unicode characters I will use, then rendering these by a StaticText at beginning.
Is there any better solutions you could teach me?
Thank you very much.
XJ.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: serious lag when display unicode characters at the 1st time
Currently this situation is unchanged - so all previous advice and techniques still stand (as kludgey and nasty as they are) - admittedly the situation is far from ideal.
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 12 guests