views:

81

answers:

1

I'm trying to learn something about 2D games programming. For this purpose I've downloaded many samples developed in: Flex and Microsoft WPF. I've noticed that all the animations / moving objects are kind of non-smooth. I've seen a Flex example with double buffering which solved the image flickering, but it was laggy too. WPF example too. Just to mentioned, all examples were drawing on Canvas.

I'm just curious, is it possible to have a wonderful non-laggy movement on the GUI in Flash or WPF ? (e.g. like a real game, coded in C++)

+1  A: 

If you go with WPF for games and desire really smooth animations you need to use the CompositionTarget.Rendering Event for rendering. Instead of WPF you might also consider to use the XNA Framework, wich does a very good job at building 2D and 3D games. It is easy to use yet very powerfull. It locks you in on Microsoft operating systems though (Windows XP and later, XBox360, Zune, Windows Phone 7).

bitbonk