user1432532
user1432532

Reputation: 349

Faster Way For Graphics In Visual Studios?

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

Answers (1)

Lee O.
Lee O.

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

Related Questions