It's widely known that in body-effort based activities (football, basketball, ...), the player must do a lot of exercises just before the start of the match in order to get ready, but I'm wondering if it differs when activities are mental-effort based (e.g. chess, coding,...). In other words, before a codeforces round, should I relax, take a nap or try to activate my mind by solving some problems?