Skip to content

Commit c11a72e

Browse files
committed
fix: Integrate AsyncComputeManager into main program loop
1 parent db48d57 commit c11a72e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UE4SS/src/UE4SSProgram.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <Signatures.hpp>
3939
#include <Timer/ScopedTimer.hpp>
4040
#include <UE4SSProgram.hpp>
41+
#include <AsyncCompute.hpp>
4142
#include <Unreal/AGameMode.hpp>
4243
#include <Unreal/AGameModeBase.hpp>
4344
#include <Unreal/GameplayStatics.hpp>
@@ -1095,6 +1096,9 @@ namespace RC
10951096
m_queued_events.end());
10961097
}
10971098

1099+
// Process any completed async compute callbacks
1100+
AsyncComputeManager::get().process_completed_tasks();
1101+
10981102
// Commented out because this system (turn off hotkeys when in-game console is open) it doesn't work properly.
10991103
/*
11001104
auto* player_controller = get_player_controller();

0 commit comments

Comments
 (0)