Skip to content

Commit

Permalink
Fix ProcessMode in ImGuiController
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jun 5, 2024
1 parent 1a1cbbd commit 5e5323e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/imgui-godot/ImGuiGodot/ImGuiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public override void _EnterTree()
public override void _Ready()
{
ProcessPriority = int.MaxValue;
ProcessMode = ProcessModeEnum.Always;
}

public override void _ExitTree()
Expand Down
1 change: 1 addition & 0 deletions gdext/src/ImGuiController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ void ImGuiController::_enter_tree()
void ImGuiController::_ready()
{
set_process_priority(std::numeric_limits<int>::max());
set_process_mode(Node::PROCESS_MODE_ALWAYS);
}

void ImGuiController::_exit_tree()
Expand Down

0 comments on commit 5e5323e

Please sign in to comment.