0 votes

I captured one frame of my project with Xcode. Then I fount that there are too many batch when draw text, Almost every word has one batch . For my own engine before, If the words are in the same font bitmap, It will only use one batch to render them all.

So. how can i solve the problem?

in Engine by (25 points)

I don't think you can without modifying the engine. You could post a Github issue about this to ask for a way to batch text drawing more efficiently?

1 Answer

0 votes

There is a CanvasItem.draw_string method.
you can use it in func _draw():
this might help.

by (9,782 points)

I'll try it.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.