Which is faster when animating the UI: a Control or a Picture?
Posted
by
Christopher Walker
on Stack Overflow
See other posts from Stack Overflow
or by Christopher Walker
Published on 2012-10-17T22:59:43Z
Indexed on
2012/10/17
23:00 UTC
Read the original article
Hit count: 246
/I'm working with and testing on a computer that is built with the following: {1 GB RAM (now 1.5 GB), 1.7 GHz Intel Pentium Processor, ATI Mobility Radeon X600 GFX}
I need scale / transform controls and make it flow smoothly. Currently I'm manipulating the size and location of a control every 24-33ms (30fps), ±3px. When I add a 'fade' effect to an image, it fades in and out smoothly, but it is only 25x25 px in size. The control is 450x75 px to 450x250 px in size. In 2D games such as Bejeweled 3, the sprites animate with no choppy animation.
So as the title would suggest: which is easier/faster on the processor: animating a bitmap (rendering it to the parent control during animation) or animating the control it's self?
© Stack Overflow or respective owner