fix issue in DNA copy, reduce number of test iterations.
This commit is contained in:
@@ -2190,7 +2190,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm
|
|||||||
const char* memDna = btDefaultSerializer::getMemoryDna();
|
const char* memDna = btDefaultSerializer::getMemoryDna();
|
||||||
if (sz < bufferSizeInBytes)
|
if (sz < bufferSizeInBytes)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < bufferSizeInBytes; i++)
|
for (int i = 0; i < sz; i++)
|
||||||
{
|
{
|
||||||
bufferServerToClient[i] = memDna[i];
|
bufferServerToClient[i] = memDna[i];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ void testSharedMemory(b3PhysicsClientHandle sm)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
///perform some simulation steps for testing
|
///perform some simulation steps for testing
|
||||||
for ( i=0;i<10000;i++)
|
for ( i=0;i<1000;i++)
|
||||||
{
|
{
|
||||||
b3SharedMemoryStatusHandle statusHandle;
|
b3SharedMemoryStatusHandle statusHandle;
|
||||||
int statusType;
|
int statusType;
|
||||||
|
|||||||
Reference in New Issue
Block a user