Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Increases Gamecube pad polling rate during netplay to normal. Also re…
…-add dualcore setting syncing to netplay, which I had erroneously removed.
  • Loading branch information
JMC47 authored and RachelBryk committed Aug 18, 2013
1 parent 803b7ae commit 26242de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/Core/Core/Src/BootManager.cpp
Expand Up @@ -140,6 +140,7 @@ bool BootCore(const std::string& _rFilename)

if (NetPlay::IsNetPlayRunning())
{
StartUp.bCPUThread = g_NetPlaySettings.m_CPUthread;
StartUp.bDSPHLE = g_NetPlaySettings.m_DSPHLE;
StartUp.bEnableMemcardSaving = g_NetPlaySettings.m_WriteToMemcard;
SConfig::GetInstance().m_EnableJIT = g_NetPlaySettings.m_DSPEnableJIT;
Expand Down
4 changes: 3 additions & 1 deletion Source/Core/Core/Src/HW/SI.cpp
Expand Up @@ -644,10 +644,12 @@ void RunSIBuffer()
int GetTicksToNextSIPoll()
{
// Poll for input at regular intervals (once per frame) when playing or recording a movie
if (Movie::IsPlayingInput() || Movie::IsRecordingInput() || NetPlay::IsNetPlayRunning())
if (Movie::IsPlayingInput() || Movie::IsRecordingInput())
{
return SystemTimers::GetTicksPerSecond() / VideoInterface::TargetRefreshRate;
}
if (NetPlay::IsNetPlayRunning())
return SystemTimers::GetTicksPerSecond() / VideoInterface::TargetRefreshRate / 2;

if (!g_Poll.Y && g_Poll.X)
return VideoInterface::GetTicksPerLine() * g_Poll.X;
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/Src/NetPlayClient.cpp
Expand Up @@ -253,6 +253,7 @@ unsigned int NetPlayClient::OnData(sf::Packet& packet)
{
std::lock_guard<std::recursive_mutex> lkg(m_crit.game);
packet >> m_current_game;
packet >> g_NetPlaySettings.m_CPUthread;
packet >> g_NetPlaySettings.m_DSPEnableJIT;
packet >> g_NetPlaySettings.m_DSPHLE;
packet >> g_NetPlaySettings.m_WriteToMemcard;
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/Src/NetPlayProto.h
Expand Up @@ -10,6 +10,7 @@

struct NetSettings
{
bool m_CPUthread;
bool m_DSPHLE;
bool m_DSPEnableJIT;
bool m_WriteToMemcard;
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/Src/NetPlayServer.cpp
Expand Up @@ -554,6 +554,7 @@ bool NetPlayServer::StartGame(const std::string &path)
sf::Packet spac;
spac << (MessageId)NP_MSG_START_GAME;
spac << m_current_game;
spac << m_settings.m_CPUthread;
spac << m_settings.m_DSPEnableJIT;
spac << m_settings.m_DSPHLE;
spac << m_settings.m_WriteToMemcard;
Expand Down

0 comments on commit 26242de

Please sign in to comment.