Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
Hi Colin, That’s a nice demo! How many layers does it have? Rick > On Mar 23, 2019, at 12:42 AM, Colin Holgate via use-livecode > wrote: > > http://colin.scienceninja.com/lcscrolling/Scrolling.htm >

Re: Fastest Frame Rate?

2019-03-23 Thread Colin Holgate via use-livecode
There are 10 layers to handle the landscape, sky, and tracks. Then 100 LC logos on top of those. > On Mar 23, 2019, at 7:57 AM, Rick Harrison via use-livecode > wrote: > > Hi Colin, > > That’s a nice demo! > How many layers does it have? > > Rick > > > >> On Mar 23, 2019, at 12:42 AM,

Re: Fastest Frame Rate?

2019-03-23 Thread J. Landman Gay via use-livecode
It could be, repeat loops are known as one of the slower structures. I'm not sure how you could avoid it though in this particular test. Try it with the IDE suspended too, there's all kinds of stuff going on in the background when the IDE is running. -- Jacqueline Landman Gay |

Re: Fastest Frame Rate?

2019-03-23 Thread Colin Holgate via use-livecode
I think you would need to wait 0 with messages to get a fair test. In my case I didn’t do it that way. I have one handler that moves everything, and a shorter handler that checks the mouse position (if you’re not on mobile) and calls the longer handler. Like this: on moveworld if the

Re: Fastest Frame Rate?

2019-03-23 Thread J. Landman Gay via use-livecode
I remember another version of this, it's very nicely done. Just some feedback for the OP, on desktop in Firefox it runs very smoothly. I just tried it on my Android tablet in both Chrome and Firefox where it performs pretty well but there are minor stutters and and pauses. They're not too

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
Hi Colin, Wow Cool! As an experiment to check for flicker, I created two identical sized rectangles. One is blue and the other one red. I put the blue one exactly on top of the red one and told the blue one to quickly show and hide itself using a repeat loop. My expected result if I do it

Re: Fastest Frame Rate?

2019-03-23 Thread J. Landman Gay via use-livecode
Try "wait 0".I've found that just calling the wait command causes a very short delay even without a duration. Then you could try a wait of 1 millisecond or a bit longer to adjust it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
I tried wait 0, wait 1 millisecond, and wait 1 tick. All three show inconsistent flicker results. Nice suggestions though! It the repeat loop slowing things down? Thanks, Rick > On Mar 23, 2019, at 12:39 PM, J. Landman Gay via use-livecode > wrote: > > Try "wait 0".I've found that just

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
I was digging through the archives and was reminded that we fully funded a kickstarter for a physics engine. Whatever happened to that? Is it even on the roadmap? Rick ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
Hi Colin, Yes, I tried send in time instead of a repeat loop. I have tried wait 0 with messages too. The best I get is a little solid purple, then a little too red and then a little too blue etc. I even tried a scrollbar to give me the flexibility to set a range of times. It just isn’t

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
I find I get equally good results by alternately setting the blend level of the blue rectangle to 100 and then back to 0. It has fewer lines of code too. I still see flicker though. Rick ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Fastest Frame Rate?

2019-03-23 Thread Colin Holgate via use-livecode
Are you testing on mobile yet? There is LiveCode code that will make that be faster than desktop. These sort of things: on preopenstack if the environment is mobile then iphoneSetRedrawInterval 1 set the compositorType of this stack to "OpenGL" set the compositorTileSize of

Re: Fastest Frame Rate?

2019-03-23 Thread hh via use-livecode
That's why "tick" is 1/60 seconds ... A native display (as a browser widget in LC) or a browser (as Colin used) may be a good test object. See also https://www.testufo.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
You are switching the layers instead of using show and hide. I added a quit button to stop the animation. I tried this with both 16 milliseconds and 8 milliseconds. (I think 8 might be slightly better.) I still see some flicker though, even when I turn off the development tools. If it were fast

Re: Fastest Frame Rate?

2019-03-23 Thread Niggemann, Bernd via use-livecode
Hi Rick, rename your red and blue graphic according to this script or change the names in this script and try this. It works quite well for me. --- local sRed = "255,0,0" local sBlue = "17,137,255" local sRunning = false on mouseUp if not sRunning

Re: Fastest Frame Rate?

2019-03-23 Thread Rick Harrison via use-livecode
Hi Colin, Not just yet. I have a few more things to work on before trying mobile. I will be sure to use your suggestions below. Thanks! Rick > On Mar 23, 2019, at 8:46 PM, Colin Holgate via use-livecode > wrote: > > Are you testing on mobile yet? There is LiveCode code that will make that