How do you manage ADHD meds losing effectiveness over time

My ADHD meds work well at first but quickly lose effectiveness. I've already tried adjusting the dose and switching medications, but the same pattern repeats. Has anyone found ways to make the effects last longer? Could diet or other factors play a role? Any advice would be appreciated!

Edit: To clarify, by "quickly lose effectiveness" I mean that the meds lose their effectiveness as a whole a while after I first start out on them.

Repeating cycle: Start out on a different dose/meds -> works really well for a few days -> starts actively making me tired/groggy -> start doubling dose to get effects -> repeats.