Reputation: 349
In Visual Studios, using the Graphics class, if you try to clear the screen and draw graphics afterwards it won't be able to keep up and will cause a terrible flicker.
Is there a faster way to do this?
I want to be able to draw graphics on the screen and clear them fast enough to keep up with movement. Kind of like how OpenGL works.
Upvotes: 1
Views: 296
Reputation: 3312
You want to use double buffering. Basically you draw the next image off screen in advance and then move it into view to avoid the flickering effect. C# has a BufferedGraphics class. This will probably help too.
Upvotes: 3