probably alternating between the tree and swimming, doing one for too long would be boring
The tree would be great if there is any shade, nice to cool down since deserted islands tend to be rather warm & sunny. Swimming for too long will get you burnt, so the shady breaks are a necessity.