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 67a10be commit e5e004f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platforms/desktop-shared/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ static void main_menu(void)

if (ImGui::BeginMenu("Overscan"))
{
ImGui::PushItemWidth(170.0f);
ImGui::PushItemWidth(150.0f);
if (ImGui::Combo("##overscan", &config_video.overscan, "Disabled\0Top+Bottom\0Full (284 width)\0Full (320 width)\0\0"))
{
emu_set_overscan(config_debug.debug ? 0 : config_video.overscan);
Expand Down
5 changes: 2 additions & 3 deletions src/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ void Input::Tick(unsigned int clockCycles)
{
m_iInputCycles += clockCycles;

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

0 comments on commit e5e004f

Please sign in to comment.