Skip to content

Commit

Permalink
Set DontHookWndProc=true by default in FFXVI to deal with the splash …
Browse files Browse the repository at this point in the history
…screen
  • Loading branch information
Kaldaien committed Sep 19, 2024
1 parent dee4ea1 commit 3d84d9e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
24.9.19.3
24.9.19.4
=========
+ Set DontHookWndProc=true by default in FFXVI to deal with the splash screen

24.9.19.3
=========
+ Handle Final Fantasy XVI's NVIDIA Streamline Interposer trying to
create a new SwapChain while the game is exiting and has no window
Expand Down
4 changes: 2 additions & 2 deletions include/SpecialK/DLL_VERSION.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#define SK_YEAR 24
#define SK_MONTH 9
#define SK_DATE 19
#define SK_REV_N 3
#define SK_REV 3
#define SK_REV_N 4
#define SK_REV 4

#ifndef _A2
#define _A2(a) #a
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/ffxvi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ SK_FFXVI_PresentFirstFrame (IUnknown* pSwapChain, UINT SyncInterval, UINT Flags)

if (SK_FFXVI_ActiveAntiStutter)
{
config.render.framerate.max_delta_time = 15;
config.render.framerate.max_delta_time = 3;
config.render.framerate.sleepless_render = true;
config.render.framerate.sleepless_window = true;
config.render.framerate.sleepless_window = false;
}

ini.cutscene_fps_addr =
Expand Down Expand Up @@ -677,9 +677,9 @@ SK_FFXVI_PlugInCfg (void)
{
if (SK_FFXVI_ActiveAntiStutter)
{
config.render.framerate.max_delta_time = 15;
config.render.framerate.max_delta_time = 3;
config.render.framerate.sleepless_render = true;
config.render.framerate.sleepless_window = true;
config.render.framerate.sleepless_window = false;
}

else
Expand Down
4 changes: 1 addition & 3 deletions src/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1301,9 +1301,7 @@ SleepEx_Detour (DWORD dwMilliseconds, BOOL bAlertable)
if (bFFXVI)
{
static thread_local uint64_t sleeps_skipped = 0;
if ( sleeps_skipped++ %
(config.priority.available_cpu_cores *
config.priority.available_cpu_cores * 2) == 0 )
if ( sleeps_skipped++ % 3 == 0 )
{
return
SK_SleepEx (dwMilliseconds, bAlertable);
Expand Down

0 comments on commit 3d84d9e

Please sign in to comment.