Hey guys,
I am trying to make a multi-language chat room in a game but Im finding this really hard to do in Game Maker.
When I include a .TTF and dynamically create the font at runtime the performance is really bad. Each new sentence ups the draw calls and slows the game down. I noticed that Game Maker renders the dynamically created glyphs on a single texture page, and once you have enough characters it replaces the old ones on that texture page with new characters. Im assuming thats whats causing the performance problems.
The chat room in my game will have about 100 scrollable chat items, which makes it impossible to build using the current Game Maker dynamic TTF fonts. One fix I tried was saving each chat sentence to a surface and then drawing the surface instead of the font directly. But this has problems too, on mobile when users open their keyboard the app loses focus and surfaces have to be constantly redrawn, making the chat room unusable.
Wanted to know from the devs why dynamic font is implemented like this. I tried out Unity engine and made a similar multi-language chat room, it works very well. I have included the apk below :
https://drive.google.com/open?id=1_oAzNwKQypwJPIobVzH7SKOm3fTXw2rp
Does anyone have any suggestions if this is possible with Game Maker ?
I am trying to make a multi-language chat room in a game but Im finding this really hard to do in Game Maker.
When I include a .TTF and dynamically create the font at runtime the performance is really bad. Each new sentence ups the draw calls and slows the game down. I noticed that Game Maker renders the dynamically created glyphs on a single texture page, and once you have enough characters it replaces the old ones on that texture page with new characters. Im assuming thats whats causing the performance problems.
The chat room in my game will have about 100 scrollable chat items, which makes it impossible to build using the current Game Maker dynamic TTF fonts. One fix I tried was saving each chat sentence to a surface and then drawing the surface instead of the font directly. But this has problems too, on mobile when users open their keyboard the app loses focus and surfaces have to be constantly redrawn, making the chat room unusable.
Wanted to know from the devs why dynamic font is implemented like this. I tried out Unity engine and made a similar multi-language chat room, it works very well. I have included the apk below :
https://drive.google.com/open?id=1_oAzNwKQypwJPIobVzH7SKOm3fTXw2rp
Does anyone have any suggestions if this is possible with Game Maker ?