UDP networking improvements and experiments (send CMD_STEP_FORWARD_SIMULATION as 4 bytes command, status 8 bytes, instead of enormous command/status packages.

Change some timeouts to use actual RTC time instead of dummy loops 1024*1024*1024.
Fix type conected -> connected
This commit is contained in:
erwincoumans
2017-01-28 22:14:45 -08:00
parent 2ea7111933
commit 87bce5eacf
9 changed files with 110 additions and 45 deletions

View File

@@ -125,6 +125,7 @@ bool PhysicsDirect::connect()
m_data->m_commandProcessor->setGuiHelper(&m_data->m_noGfx);
if (connected)
//also request serialization data
{
SharedMemoryCommand command;
@@ -211,7 +212,7 @@ SharedMemoryCommand* PhysicsDirect::getAvailableSharedMemoryCommand()
bool PhysicsDirect::canSubmitCommand() const
{
return true;
return m_data->m_commandProcessor->isConnected();
}
bool PhysicsDirect::processDebugLines(const struct SharedMemoryCommand& orgCommand)