You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Renderer: Eliminates String allocations for all labels in the renderer
Uses `Span<char>` to avoid additional allocations in the graph.
This commit is contained in:
@@ -1643,7 +1643,8 @@ public:
|
||||
|
||||
void set_resource_name(RID p_id, const String &p_name);
|
||||
|
||||
void draw_command_begin_label(String p_label_name, const Color &p_color = Color(1, 1, 1, 1));
|
||||
void _draw_command_begin_label(String p_label_name, const Color &p_color = Color(1, 1, 1, 1));
|
||||
void draw_command_begin_label(const Span<char> p_label_name, const Color &p_color = Color(1, 1, 1, 1));
|
||||
void draw_command_end_label();
|
||||
|
||||
String get_device_vendor_name() const;
|
||||
|
||||
Reference in New Issue
Block a user