Lag when putting pixels

Hello I have a problem, I have version 1.8.8, Well everything is fine until I try to draw something, it is delayed when putting a pixel and some way to fix it, it happens with all the versions that I have, Please I need help inmediately