PyAccSharedMemory
PyAccSharedMemory copied to clipboard
Determination of new physics package & unused variable
Variable last_physicsID never set to physics.packed_id therefore the if statement seems to require a full copy of the physics shared memory to determine if there is a new packet. I've modified my copy to the snippet below, but I'm not running github so maybe you could check? About line 1000
if (physics.packed_id == self.last_physicsID):
return None
else:
#self.physics_old = copy.deepcopy(physics)
self.last_physicsID = physics.packed_id # added
return ACC_map(physics, graphics, statics)
Thank you for this package, really appreciated.