displaying forms rapidly without skipping frames.

Karl Ramberg karl.ramberg at chello.se
Thu May 2 18:11:08 UTC 2002


Yisrael Lowenstein wrote:
> 
> I am trying to show a collection of forms at a set rate.  I came up with
> this:
> 
> formCollection do:
>         [:aForm| aForm display. (Delay forSeconds: (1/30)) wait.].
> 
> the problem is that it is skipping many frames and getting about 3-4 fps
> instead of the 30 is should be.
> 
> I'm thinking it is getting put in a buffer to be displayed the next time
> the screen gets updated..and that is just gitting overwritten b/w updates.
> 
> Is there any way to force it to write imediately?
>         Lushi

Look at the class DisplayObject. 
30 fps can bring Squeak to it's knees if the images are big.

Karl



More information about the Squeak-dev mailing list