Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 15 Oct 2007 17:07:52 +0100
Hi!
I'd like to display several moving rotating objects. I was tried it implementing in three ways, but neither was made me satisfied.
Brushes: Used rotatebrush and double buffer. It works, but a bit slow. (five 140x120 brushes on a display 640x480 eats 85% cpu)
Layers: Used insertlayer after brush rotating. Do not know how to eliminate flickering (remove layer - insertlayer)
Sprites: It needs brushes too, because that is the only rotatable object, so there is no gain.
So, could somebody suggest the best method to do it? I think it would be much easier to use a rotating anim and use layer's next frame, but I'd like to avoid to use pregenerated gfx.
[15 Oct 2007] rotating objects
- airsoftsoftwair
- Posts: 5832
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[16 Oct 2007] Re: rotating objects
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 16 Oct 2007 22:20:12 +0200
Oh, you should better use pregenerated gfx. Rotating is quite CPU expensive. If you do this on the fly, it will eat up a considerable amount of CPU time.
Oh, you should better use pregenerated gfx. Rotating is quite CPU expensive. If you do this on the fly, it will eat up a considerable amount of CPU time.