mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2346] [MERGED] Fix issues with input detection due to overloaded ring buffer and fix buffer size being incorrect #2667
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2667
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2346
Author: @kalaposfos13
Created: 2/4/2025
Status: ✅ Merged
Merged: 2/5/2025
Merged by: @georgemoralis
Base:
main← Head:remap-fix-input-overload📝 Commits (4)
ebb62d7Add axis noise filter + only update outputs if a change happened1d299e3Change the ring buffer size to 32 as seen in Ghidra727c826Merge remote/tracking branch origin/main926d770Fix merge📊 Changes
2 files changed (+30 additions, -23 deletions)
View changed files
📝
src/input/controller.h(+1 -1)📝
src/input/input_handler.cpp(+29 -22)📄 Description
Adds an axis noise filter and only updates outputs if a change happened to that output, meaning that there are now both less axis movement event spam, and now every input event only updates one output, instead of updating all of them with all but the updated one holding duplicate data from the previous entry, which was making the ring buffer holding input events being overloaded in two different ways. These features were once in my main remap PR, but I had to revert them, although it looks like whatever was the issue that led to that no longer applies, as from my testing, I couldn't find any significant regressions, but just to be safe, I'll open this as a draft and wait until it's tested on more games.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.