Skip to content

Commit

Permalink
Improve input response time
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 13, 2024
1 parent b3850e3 commit cb424e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Input.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ inline void Input::Tick(unsigned int clockCycles)
{
m_iInputCycles += clockCycles;

// Joypad Poll Speed (64 Hz)
if (m_iInputCycles >= 65536)
if (m_iInputCycles >= 10000)
{
m_iInputCycles -= 65536;
m_iInputCycles -= 10000;
Update();
}
}
Expand Down

0 comments on commit cb424e3

Please sign in to comment.