Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] problems with RATE ( what do you think Carl )

From: rebol-list2::seznam::cz at: 10-Jan-2003 1:07

Hello rebol-list, as I'm now finishing one simple game in Rebol, I've found that there is probably something strange with the RATE property in faces. Normal is that the script is idle and is waiting for a message from sever. The CPU usage is almost 0. but after about 13 explosions where there is only inserted face with rate 10 which is after 5 frames stoped by setting rate: none the CPU is almost on 50% and increases with each explosion! It looks that the rate events if faces are still being somehow processed in the background! I think it must be bug in Rebol itself. The explosion style I'm using is: water-explosion: image with [ size: 26x25 effect: [key 6.255.0] user-data: 1 init: [ image: first imgs-water-explosion rate: 10 ] feel: make feel [ engage: func [f a e] [ switch a [ time [ either f/user-data < 5 [ f/user-data: f/user-data + 1 f/image: pick imgs-water-explosion f/user-data ][ rate: none ] show f ] down [f/user-data: 0 f/rate: 10] ] ] ] ] The new faces are made using: make-explosion: func[where ofs type][ insert tail where/pane make-face/styles/offset type ships-ss ofs ] When I use just an image without rate, everything is working fine. I've noticed this behaviour when I was making R-Box2 but the source was too complicated to show :( and I had to stop using the RATE ): =( Oliva David )=======================( [oliva--david--seznam--cz] )== =( Earth/Europe/Czech_Republic/Brno )============================= =( coords: [lat: 49.22 long: 16.67] )=============================