Releases: ShmidtS/OptiScaler
Releases · ShmidtS/OptiScaler
Test-build - Buffer Index Fix
Test Build - Buffer Index Mismatch Fix
Fixed
- Critical: Synchronized
GetIndexWillBeDispatched()withGetDispatchIndex()to prevent buffer index mismatch - Camera data now correctly writes to the same buffer that dispatch reads from
Problem
When _lastDispatchedFrame == 0 and no Depth resource was available:
GetIndexWillBeDispatched()returned_frameCount % BUFFER_COUNTGetDispatchIndex()returned(_lastDispatchedFrame + 1) % BUFFER_COUNT
This caused camera data to be written to wrong buffer, leading to freezes in some games (especially Arknights Endfield).
Solution
Both functions now use identical logic:
- With Depth resource: use
_frameCount - Without Depth resource: use
_lastDispatchedFrame + 1