Houston Rockets shooting guard Eric Gordon will undergo arthroscopic surgery on his right knee on Wednesday and likely will be out for roughly six weeks.

Rockets head coach Mike D’Antoni said a piece of debris was found on an MRI Tuesday morning and that Gordon has actually been dealing with knee discomfort “since the middle of last year.”

“It will clean up some things,” D’Antoni said, via Jonathan Feigen of the Houston Chronicle. “It's been bothering him actually since the middle of last year. I think he's actually relieved that he can clean it up, get it going, so he can come back as strong as ever.”

The timing of the surgery is bad for Gordon, who had his best game of the season on Monday against the New Orleans Pelicans. He scored a season-high 17 points while shooting 6-of-11 from the field and 4-of-7 from beyond the arc.

The Rockets defeated the Pelicans to improve to 7-3 on the season.

Gordon signed an extension with the Rockets this offseason. He's averaging 10.9 points and 1.9 rebounds per game this season while shooting 30.9 percent overall, 28.4 percent from the 3-point line and 64.3 percent from the charity stripe.

Maybe Gordon will come back a better player after the surgery. The discomfort may have played a role in his early season struggles.