The drubbing was a dismal result for Roddick, whose declining fortunes in recent months have left him fending off questions about retirement.
Djokovic closed out the victory with consecutive aces. Roddick then quickly left the court where he lost three Wimbledon finals, and was noncommittal about the possibility he won't be back.
"It's not close to my mind right now," said Roddick, 29. "That's not something that I'm going to talk about."
The match stirred considerable anticipation as second rounds go, and the crowd was near capacity when they took the court, with both the Serb and the American wearing red, white and blue. For the first time in the tournament, even the Royal Box was almost full.
Roddick started well enough, holding his first two service games, but from there the match quickly slipped away. His big serve was negated as a weapon against the game's best returner, and in baseline rallies Roddick was no match for Djokovic, who deployed his extensive arsenal of slices, drop shots and rocket-like groundstrokes.
Djokovic won seven consecutive games during one stretch, and 12 of the final 13. He finished with 14 aces, lost only 10 points in eight service games and had just six unforced errors.
In the final game Roddick hit a perfect drop shot, but Djokovic ran it down and whipped it cross-court for a winner. The Serb stood with his arms raised, basking in the roar of the crowd, while Roddick shook his head.
"That was one of the best drop shots I ever hit," Roddick shouted to Djokovic when the cheers died down.
Djokovic only smiled. Then he hit another ace.
"It was a perfect match in every sense," the Serb said.
A bronze medallist in 2008 and a Wimbledon champion last year, Djokovic has high hopes in the tournament but plans to enjoy the Olympics regardless. He enjoys hanging out in the athletes village and met two-time NHL MVP Alex Ovechkin, who agreed to trade a hockey stick for a racket.
"The basics of any Olympic Games is to be alongside the best athletes in the world, to dine with them, to make pictures with them, to chat, exchange experiences," Djokovic said. "This happens only every four years."
Like Djokovic, Venus Williams charged into the third round. She won 15 of 16 points when she reached the net and beat Aleksandra Wozniak of Canada 6-1, 6-3.
Back on her favourite stage — Centre Court — Williams dominated with her aggressiveness, which is what makes her so dangerous on grass. Of the points she has won through two rounds, nearly one-third have come when she moved forward.
Williams is also serving well and ripping returns. She broke Wozniak six times in eight games.
"Every day I'm just concentrating on trying to bring my best tennis out," Williams said. "And honestly, if there's a time to do it, it's now."
Williams won her most recent tournament title 2 1/2 years ago, and she took a long layoff after being diagnosed in 2011 with an autoimmune disease that causes fatigue. But at 32, she seems rejuvenated by the chance at a record fourth gold medal in Olympic tennis.
"Much improvement in the last few weeks," U.S. coach Mary Joe Fernandez said. "And this is where she feels at home. It's great to be back on the grass."
Williams has won five of her seven major titles at the All England Club, most recently in 2008. Her opponent Wednesday will be No. 7 Angelique Kerber of Germany, who beat Timea Babos of Hungary 6-1, 6-1.
Maria Sharapova hit 10 aces under the roof and beat Laura Robson of Britain, 7-6 (5), 6-3. Sharapova, seeded No. 3, will next play No. 15 Sabine Lisicki of Germany.
British hopeful Andy Murray, seeded No. 3, advanced by beating Jarkko Nieminen of Finland 6-2, 6-4. Nieminen won cheers for his scrappy play, including a tumble into the first row in pursuit of a shot.
Also scrappy but more successful was three-time Olympian Lleyton Hewitt, the Wimbledon champion 10 years ago. He beat No. 13 Marin Cilic of Croatia 6-4, 7-5.