Skip to content

Commit

Permalink
Tick hook: Remove unnecessary mutex lock
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Feb 17, 2025
1 parent 4446e08 commit e77b321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void FFakeStereoRenderingHook::attempt_hook_game_engine_tick(uintptr_t return_ad
}

if (!g_framework->is_game_data_intialized()) {
return hook->m_tick_hook.call<void*>(engine, delta, idle);
return hook->m_tick_hook.unsafe_call<void*>(engine, delta, idle);
}

hook->attempt_hooking();
Expand Down Expand Up @@ -391,7 +391,7 @@ void FFakeStereoRenderingHook::attempt_hook_game_engine_tick(uintptr_t return_ad
mod->on_pre_engine_tick(engine, delta);
}

const auto result = hook->m_tick_hook.call<void*>(engine, delta, idle);
const auto result = hook->m_tick_hook.unsafe_call<void*>(engine, delta, idle);

for (auto& mod : mods) {
mod->on_post_engine_tick(engine, delta);
Expand Down

0 comments on commit e77b321

Please sign in to comment.