1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-26 14:41:53 +01:00

feat: Add warning if vsync is not enabled

Something I ran into by accident during testing and
development that I had vsync turned off by accident.
Increase visibility in the logs.
This commit is contained in:
icex2 2025-02-07 13:22:11 +01:00
parent ce1a004bf6
commit 4d8c9359a1

View File

@ -232,7 +232,7 @@ iidxhook_util_d3d9_log_create_device_params(struct hook_d3d9_irp *irp)
"hDeviceWindow %p, Windowed %d, "
"EnableAutoDepthStencil "
"%d, AutoDepthStencilFormat %d, Flags %lX, "
"FullScreen_RefreshRateInHz %d",
"FullScreen_RefreshRateInHz %d, PresentationInterval %d",
irp->args.ctx_create_device.pp->BackBufferWidth,
irp->args.ctx_create_device.pp->BackBufferHeight,
irp->args.ctx_create_device.pp->BackBufferFormat,
@ -244,7 +244,13 @@ iidxhook_util_d3d9_log_create_device_params(struct hook_d3d9_irp *irp)
irp->args.ctx_create_device.pp->EnableAutoDepthStencil,
irp->args.ctx_create_device.pp->AutoDepthStencilFormat,
irp->args.ctx_create_device.pp->Flags,
irp->args.ctx_create_device.pp->FullScreen_RefreshRateInHz);
irp->args.ctx_create_device.pp->FullScreen_RefreshRateInHz,
irp->args.ctx_create_device.pp->PresentationInterval);
if (irp->args.ctx_create_device.pp->PresentationInterval != D3DPRESENT_INTERVAL_ONE) {
log_warning("PresentationInterval is not 1, i.e. VSYNC is OFF (!): %d",
irp->args.ctx_create_device.pp->PresentationInterval);
}
}
static void