I've been searching the forums and I can't find anything! I just need a way to measure lag. A FPS block would be great! But there are probably already ways to do things like that. Any help is welcome.
Is there a way to make a frame counter using the[blocks] <timer> [/blocks] block and variables?
Offline
That would be helpful. I think you can do something similar by doing this:
[blocks]
<reset timer>
<set{ counter }to( 0 )
<repeat until> <( <timer> <>> 10 )>
<change{ counter }by( 1 )
<end>
<set{ fps }to( (( <{ counter }> </> 10 ))
[/blocks]
OR
[blocks]
<reset timer>
<set{ counter }to( 0 )
<forever>
<change{ counter }by( 1 )
<set{ fps }to( (( <{ counter }> </> <timer> ))
[/blocks]
Last edited by demosthenes (2009-08-16 15:00:27)
Offline
demosthenes wrote:
That would be helpful. I think you can do something similar by doing this:
[blocks]
<reset timer>
<set{ counter }to( 0 )
<repeat until> <( <timer> <>> 10 )>
<change{ counter }by( 1 )
<end>
<set{ fps }to( (( <{ counter }> </> 10 ))
[/blocks]
OR
[blocks]
<reset timer>
<set{ counter }to( 0 )
<forever>
<change{ counter }by( 1 )
<set{ fps }to( (( <{ counter }> </> <timer> ))
[/blocks]
I'll compare it to bubble07's method.
EDIT: It worked! Thanks man!
Last edited by illusionist (2009-08-16 15:37:20)
Offline