Skip to content

cellGem: Update controllers at 10 Hz in separate thread#16528

Merged
Megamouse merged 4 commits into
RPCS3:masterfrom
Megamouse:cellGemUpdate
Jan 10, 2025
Merged

cellGem: Update controllers at 10 Hz in separate thread#16528
Megamouse merged 4 commits into
RPCS3:masterfrom
Megamouse:cellGemUpdate

Conversation

@Megamouse
Copy link
Copy Markdown
Contributor

  • Update controllers at 10 Hz in separate thread instead of cellGemGetInfo

Some games don't use cellGemGetInfo, which means we had to reboot the game if the controller wasn't connected on boot.
Updating controllers outside of the cell functions fixes this problem.

@Megamouse Megamouse force-pushed the cellGemUpdate branch 3 times, most recently from 205f62b to dabcd46 Compare January 8, 2025 03:06
Comment thread rpcs3/Emu/Cell/Modules/cellGem.cpp Outdated
Comment thread rpcs3/Emu/Cell/Modules/cellGem.cpp Outdated

void wait_for_result()
{
if (!m_done)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a while loop, code should not assume that wait is accurate and won't wake up spuriously

Comment thread rpcs3/Emu/Cell/Modules/cellGem.cpp Outdated
}
}

gem_config_data& operator=(thread_state)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noexcept

Comment thread rpcs3/Emu/Cell/Modules/cellGem.cpp Outdated
@Megamouse Megamouse force-pushed the cellGemUpdate branch 2 times, most recently from 93bdd96 to 00b09de Compare January 9, 2025 15:56
Some games don't use cellGemGetInfo.
Which means we had to reboot the game if the controller wasn't
connected on boot.
Updating controllers outside of the cell functions fixes this problem.
@Megamouse Megamouse merged commit 1b87e18 into RPCS3:master Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants