mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-03-21 17:44:15 -05: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:
parent
48668837a8
commit
64381a84c5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user