[15 Oct 2007] rotating objects

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
lazi
Posts: 646
Joined: Thu Feb 24, 2011 11:08 pm

[15 Oct 2007] rotating objects

Post by lazi »

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.
User avatar
airsoftsoftwair
Posts: 5833
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[16 Oct 2007] Re: rotating objects

Post by airsoftsoftwair »

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.
Locked