When I play minecraft for like 4 minutes online it freezes cause I interact with a object?

Ok so whenever I play minecraft online and offline its a cool for like 10 or 5 minutes… Then I start running around and then when I try to interact with a block it just freezes and says not responding. There's hardly anything in the backround. I tried deleting and redownloading minecraft, And I even updated java or checked for updates. The internet doesn't have anything to do with though So i need help cause this has been happening on every server and all my offline worlds Please Help! And here are my computer Stuff.

Processor: AMD E-300 APU with Radeon(tm) HD Graphics 3.0 GHz

RAM: 4GB

System Type: 64-bit Operating System, x64-based processor

Added (1). Windows 8

Added (2). And Before like 4 months ago it worked fine and none of these problems occurred

You don't have OpenGL and very recently you need to have opengl to play.