GodSVG icon indicating copy to clipboard operation
GodSVG copied to clipboard

handles_manager.gd _draw() method is called 3 times on startup

Open MewPurPur opened this issue 11 months ago • 1 comments

This rather expensive method is called 3 times when you launch GodSVG. I'm not sure why, it should be investigated. All 3 runs do the full work on the real graphic.

MewPurPur avatar Jan 28 '25 19:01 MewPurPur

Removing the queue_redraw() in update_handles.gd removes one of the redraws, but this isn't an option. Placing prints(Engine.get_frames_drawn(), Engine.get_process_frames()) in the _draw() method seems to show that all 3 calls happen in a single frame. This goes against Godot's claim that the _draw() method only runs once per frame, even if queue_redraw() has been called multiple times.

So this seems like a Godot issue.

MewPurPur avatar Feb 02 '25 13:02 MewPurPur