how to animate picture without making it flicker using wxWidgets in erlang?
问题 I am trying to make images seems like moving. I clear the screen and put the images back on it, but the screen is flickering a lot. Is there a way to make it seems like moving without flicker that much? the "draw_asteroids" is called every 100 ms since I want the movement of the image to be as much as continuous as possible, plus i have many other elements that move on screen as well (the code is similar to the spaceship). my code: start-> Wx = wx:new(), Frame = wxFrame:new(Wx, -1, "Main Game