Commit Graph
4869 Commits
Author SHA1 Message Date
cdozdil bfd5c30f7f Don't crop the FSR reactive mask with the bias mask's subrect 2026-11-14 01:42:27 +03:00
cdozdil dacfdd1b8e Merge branch 'fsr-subrect-support' 2026-11-14 01:18:33 +03:00
cdozdil aec7cf089c Merge branch 'master' of https://github.com/optiscaler/OptiScaler 2026-11-14 00:30:23 +03:00
cdozdil cf9dde546d Don't hook the exe entry when the exe has TLS callbacks 2026-11-14 00:29:26 +03:00
TheRazerMD eb9a0f4b2f Added more quirks 2026-11-13 17:06:59 +01:00
TheRazerMD f28e22994e Updated BeamNG quirks
* ForceAutoExposure
2026-11-13 15:19:36 +01:00
TheRazerMD 7602832213 Updated Spoof status to specify which spoofing is active 2026-11-13 15:14:50 +01:00
cdozdil 5a6c7e8248 Leave DLSS subrect views at (0, 0) untouched 2026-11-13 14:15:12 +03:00
cdozdil 93866854ff Treat integer-format reactive and bias masks as not given 2026-11-13 12:20:30 +03:00
cdozdil a2bbac2dc3 Copy back only the view's rectangle in the Vulkan-on-Dx12 bridge 2026-11-13 12:20:30 +03:00
cdozdil d7260db772 Don't release Shader_Dx11's cached output, it holds no reference to it 2026-11-13 12:20:24 +03:00
cdozdil f1f28d46eb Give RCAS the view's MV and depth when a view at (0, 0) is placed 2026-11-13 12:03:07 +03:00
cdozdil 22291fc7ae Crop DLSS subrects for the native Dx11 FSR2/FSR 3.1 backends and place the output at its base 2026-11-13 12:03:07 +03:00
cdozdil e73269c51c Crop DLSS subrects for the Vulkan FFX/FSR2 backends and place the output at its base 2026-11-13 11:56:07 +03:00
cdozdil 07b21c75de Crop DLSS subrects on the Dx11 side of the Dx12 bridge and copy back only the view 2026-11-13 11:37:44 +03:00
cdozdil 8055f35a6e Crop DLSS subrects for the Dx12 FFX/FSR2 backends and place the output at its base 2026-11-13 11:19:58 +03:00
cdozdil e4b0d5fbae Don't take the loader lock while holding a Streamline plugin mutex
LoadLibraryCheckW waits for a plugin mutex after the load, also on threads that already hold the loader lock (nested
loads), while hookPlugin, releaseDeadSlots and the CheckModulesInMemory census called GetProcAddress,
GetModuleFileNameW and GetModuleHandleW with the mutex held, which can take the loader lock (always under Wine).
slGetPluginFunction is now found by reading the export table, slots are checked by their mapped file name, and the
census looks up modules before taking the try_lock.
2026-11-13 10:20:54 +03:00
Michael Robles 5f69a25d60 Log the path and error when a custom dll fails to load
The log named only the folder. It now names the dll and the load error, or
says the folder has no dll.
2026-11-12 19:01:05 +01:00
Michael Robles 2683a00dfa Fence the menu overlay's command allocators in draw order
Command allocators, fence values and the blur's descriptor slot now follow the
draw order instead of the back buffer index. Keyed to the index, the CPU waited
for the menu draw only BufferCount presents back, behind whatever else was
queued on the present queue, which held up Present with XeFG in DX12.
2026-11-12 18:57:34 +01:00
Michael Robles 241611309a Run the FSR FG present callback while FG is off or paused
The game draws its UI in that callback, and AMD's swapchain calls it while
frame generation is off too, so the game's own UI went missing in menus and
pauses with the FSR FG input.
2026-11-12 18:52:23 +01:00
Michael Robles 91ab9fe361 Don't use a custom DLSSG provider that reports no frame generation
A provider reporting FrameGeneration.Available 0 before init can't run here.
It stays loaded but unused, so the FG falls back instead of creating features
that fail.
2026-11-12 18:42:16 +01:00
Michael Robles 80f38fc56e Don't read the handle of a failed Nvngx FG create
The Vulkan CreateFeature paths logged (*OutHandle)->Id whatever the result,
which crashed the game when the modded DLSSG create failed. The Nvngx FG
creates now clear the handle first, and only a successful create logs its id.
2026-11-12 18:40:02 +01:00
Michael Robles 5834fd5151 Don't divide the Vulkan FPS limit by the game's own DLSSG count
The game's DLSSG presents its generated frames to the same swapchain, so the
driver already counts them. Counted again, a 72 fps limit at 4x gave 18
presents per second.
2026-11-12 18:39:03 +01:00
Michael Robles eba224dcdf Keep Dynamic MFG's back-off across restarts
With the target as a cap it kept stepping down and undoing it every 5-12 s.
A restart (FG back on, the window back in front) now keeps the back-off, and
a block lifts only once the reachable rate is 10% over the highest one a step
down failed at.
2026-11-12 18:38:04 +01:00
FakeMichau dcf3a44b06 Merge branch 'plugin-providers' 2026-11-12 18:29:44 +01:00
FakeMichau c71fc97fe0 Custom AMD flip meter swapchain.
Slopped. Only works on RDNA4 and takes any Nvngx FG to generate the fake frames. For more than 2x you need to run a .reg created by Opti and restart the PC.
2026-11-12 18:27:24 +01:00
cdozdil 7723b4f2ff Re-apply the game's color space to the Dx11wDx12 FG swapchain on present
The FG swapchain could lose the HDR color space before presenting, giving a washed out picture with FGOutput set (#1305). It's set again on the next present after the game's call and after every resize.
2026-11-12 13:22:46 +03:00
cdozdil a369043eef Record and submit DLSS init work on the Dx11wDx12 bridge
NGX CreateFeature got a closed command list, so its init commands were dropped and DLSS on DX11 with DX12 rendered corrupted (#1306).
2026-11-12 13:22:46 +03:00
FakeMichau 74ae2c650d Let asi plugins register custom providers
FFX VK for custom upscaling and custom FG

Interops for custom upscalers
2026-11-12 09:53:30 +01:00
cdozdil 2fff542e78 Ask Vulkan games to recreate the swapchain with suboptimal presents instead of failing acquires 2026-11-12 10:20:09 +03:00
cdozdil 1497df0824 Don't turn XeLL off for multi frame generation while another XeFG sends XeLL markers 2026-11-12 02:11:09 +03:00
cdozdil 7479cb294c Merge branch 'master' of https://github.com/optiscaler/OptiScaler 2026-11-11 22:21:38 +03:00
cdozdil 4a7795ae2a Start XeFG dispatch from the current frame after activation instead of frame 1 2026-11-11 22:21:13 +03:00
FakeMichau 9e9a7190da Allow using an upscaler in place of DLSSD in select games
Slopped.
2026-11-11 20:07:43 +01:00
cdozdil 559fca7ee8 Load ASI plugins in DllMain again 2026-11-11 17:24:50 +03:00
cdozdil 2a40e206fc Skip upscaling again when no root signature was recorded for the command list 2026-11-11 13:03:12 +03:00
cdozdil 4d308d99b3 Don't subclass a window again while another WndProc still chains through Opti 2026-11-11 01:40:57 +03:00
cdozdil da6deac3c9 Skip unloaded XInput DLLs and let the menu's own gamepad reads through 2026-11-11 01:40:57 +03:00
cdozdil a677c83466 Drop key presses Opti's polling took while the menu had input 2026-11-11 01:40:57 +03:00
cdozdil e8c61d9697 Read DirectInput buffers past events the menu had and drop the key that closed it 2026-11-11 01:40:57 +03:00
cdozdil ff5cd97dcd Forward each subclassed window to its own original WndProc 2026-11-11 01:26:45 +03:00
cdozdil 75d6d8b2df Hand the game back the key press bit Opti's own GetAsyncKeyState polling takes 2026-11-11 01:25:35 +03:00
cdozdil acd0448c6f Pass blocked Windows hook events on and reuse freed hook slots last 2026-11-11 01:24:16 +03:00
cdozdil 90a5afbdff Step through GetRawInputBuffer packets with their alignment 2026-11-11 01:24:16 +03:00
cdozdil b3f649ee22 Hook DirectInput methods for devices created before the input hooks and try each export hook once 2026-11-11 01:22:43 +03:00
cdozdil ff7eb75aa2 Hook every loaded XInput DLL and try each install once 2026-11-11 01:20:39 +03:00
cdozdil c0f2b9ff08 Keep owed XInput keystroke releases instead of draining them while blocked 2026-11-11 01:18:34 +03:00
cdozdil 5629465606 Keep owed key releases in DirectInput buffers instead of flushing them while blocked 2026-11-11 01:17:12 +03:00
cdozdil 0d024ae895 Report a centered joystick instead of zeros while DirectInput is blocked 2026-11-11 01:14:02 +03:00
cdozdil eda8648b58 Reset the menu's input state under the input lock 2026-11-11 01:12:51 +03:00