I am controlling a character (png image) whit key board and my character some times lives refreshing problems, for a moment my character's upper part doesn't synchronize whit its lower part which strongly reminds me vsync problem, I was thinking that this happens because of a momentarily sent key released event, but now I know I don't have that kind of problem, can you suggest me a proper way to refresh the screen that doesn't involve vsync like problems ?
thank you for your suggestions.