Hi everyone,
I’m working on implementing a chat feature for my app, which involves two screens. The first screen displays groups with recent chats, and clicking on a group shows the entire chat history. Each chat is represented by a node containing the sender’s name and the chat messages. These chat nodes are instantiated dynamically, and their size depends on the text content. Whenever I update the text, I use updateRenderData(true)
, but this causes the game to freeze briefly due to the large amount of text. Can anyone suggest a more efficient way to handle this issue?
Thank you