Once a year is the standard answer and it's a reasonable starting point. But the interval is really set by how much lint your household generates and how hard your particular vent run makes it to escape.
For an average household with a reasonably short, well-designed vent run, annual cleaning keeps lint accumulation well below the level where it becomes a fire hazard or a real efficiency problem.
Don't wait for the anniversary if you see any of these: clothes taking more than one cycle to dry, the dryer or laundry room noticeably hot during a cycle, a burning smell, the vent hood flap not opening, or lint appearing around the dryer's back edge. Any one of those means the line is restricted now.
Long cooling seasons mean laundry rooms in Central Texas homes often sit in already-warm interior space, and second-floor or attic-routed vent runs are common in newer metro construction. Both make restriction more consequential than a short ground-floor run through an exterior wall.
Clean the lint screen every single load, not most loads. Vacuum the lint trap housing periodically. Check the exterior vent hood while the dryer is running and confirm you feel strong airflow and the flap is fully open.
The dryer is new; the duct behind it usually isn’t. Have the existing run checked when a dryer is replaced.
Generally yes, shorter and straighter runs move lint out more effectively and stay clear longer.