Sometimes the best answer is to get a new rifle or make big changes to the one you have. I have a 223 that shot Ok, but not great. I had it rebarrelled, had the action all trued up, action bedded, new trigger, and such as that. Spent a bunch of money, and it shoots great now. And in the process of that, I had two scopes, one was a Leupold, go bad (wandering POI). Looking back, I should have just sold it and bought a heavy barrel Tikka. The Tikka 260 I have is an amazing shooter.

Of course there's a lot of satisfaction in getting a rifle to shoot well, but sometimes they just won't.