Maybe it's something else in your code, I never has any issues with things lik that.
Mind showing your whole code?
if you have a npe in your paint, no error will be shown in the logger, but lagg can occur
Try to start the client from cmd line with -debug paramater,t hat way you can see every single error.