Videogames have gotten harder to turn off, mental-health experts and parents say, raising concerns about the impact of seemingly endless gaming sessions on players’ lives.

Game developers for years have tweaked the dials not only on how games look and sound but how they operate under the hood, and such changes have made videogames more pervasive and enthralling, industry observers say.