[REBOL] Re: [view] accelerating view...
From: maximo:meteorstudios at: 15-Jan-2004 14:31
I should say that I did tests on a super easy vid script:
count: 100
s: now/time/precise
repeat i count [
off: 10x1
off/y: i * 5
ui/effect: compose/deep [gradient 1x0 0.0.0 222.222.222]
;ui/effect: compose/deep [draw [pen white line (off) 1000x500]]
show ui
]
e: now/time/precise print t: to-decimal e - s
print count / t
my computer gives me 17 frames a second... but this should be like 20000...
I mean, one line on a plain background.
I've been using vid a long time and have done a lot of pretty advanced things with it,
but its the first time I realise just how slow it really is.
now I'm thinking of creating a face which resizes to the size of the line (diagonally)
and which floats over the the rest of my ui.
-MAx
---
You can either be part of the problem or part of the solution, but in the end, being
part of the problem is much more fun.