[15 Oct 2007] rotating objects
Posted: Sat Jun 13, 2020 5:31 pm
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.
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.