This script demonstrates one way of achieving "kinematic split", splitting the simulation into two separate islands to improve performance.
The contact between the green/yellow object will be replaced by a contact between a dynamic object and a kinematic object, allowing the partitioner to split the system into two sub-islands.
When using two threads we get 100% speedup in this example.
Toggle kinematic coupling with the LEFT key.
Toggle between 1 and two threads with the RIGHT key.