You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Improve Path2D debug performance
Improves Path2D node debug performance by changing the debug to use mesh and multimesh instead of slower canvas draw functions.
This commit is contained in:
@@ -112,6 +112,19 @@ class Path2DEditor : public HBoxContainer {
|
||||
void _clear_curve_points(Path2D *p_path2d);
|
||||
void _restore_curve_points(Path2D *p_path2d, const PackedVector2Array &p_points);
|
||||
|
||||
RID debug_mesh_rid;
|
||||
RID debug_handle_mesh_rid;
|
||||
RID debug_handle_multimesh_rid;
|
||||
|
||||
RID debug_handle_curve_multimesh_rid;
|
||||
RID debug_handle_sharp_multimesh_rid;
|
||||
RID debug_handle_smooth_multimesh_rid;
|
||||
|
||||
LocalVector<Vector2> debug_handle_lines;
|
||||
LocalVector<Transform2D> debug_handle_curve_transforms;
|
||||
LocalVector<Transform2D> debug_handle_sharp_transforms;
|
||||
LocalVector<Transform2D> debug_handle_smooth_transforms;
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
void _node_removed(Node *p_node);
|
||||
@@ -122,6 +135,7 @@ public:
|
||||
void forward_canvas_draw_over_viewport(Control *p_overlay);
|
||||
void edit(Node *p_path2d);
|
||||
Path2DEditor();
|
||||
~Path2DEditor();
|
||||
};
|
||||
|
||||
class Path2DEditorPlugin : public EditorPlugin {
|
||||
|
||||
Reference in New Issue
Block a user