Long stretches of sitting still can contribute to health risks, so it's smart to break them up. A good habit is to pause roughly every hour, get up, and move around for a minute before jumping back in.
Regular movement and occasional time away from the screen are the simplest ways to stay comfortable and reduce the downsides of marathon sessions.