Lag spike when moving player
问题 The player is a panel, and it is getting removed, its position changed, and then re-added to another panel (which is what contains this method) which is drawn to the main frame. There are also a lot of other small panels containing a grass sprite being drawn to the primary panel as terrain tiles. I think the problem is that when I call revalidate() , it revalidates all those little panels as well. How can I solve this? EDIT: I should mention that I am using RelativeLayout to position the