• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

 Dynamic Font Bad Performance

Rushad

Member
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 ?
 
Top