SexScripts : Problem with waitWithGauge - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=1023 Page 1 of 1

Problem with waitWithGauge

ispank [ Mon Jan 25, 2021 2:12 am ]

Has anyone noticed a problem with
Code:
waitWithGauge()
?

If so, is this a new thing or has it existed for a while?

I was testing a new script and noticed that the wait time on one of the tasks seemed long. So I ran it again and timed it, sure enough it took
Code:
waitWithGauge(40)
took 47 seconds to complete. So then I wrote a little test procedure and
Code:
waitWithGauge(60)
takes anywhere from 69 to 72 seconds to complete.

Can someone run this on their machine and let me know if you are seeing the same results?

Code:
def timeTest = {
   def startTime = 0
   def endTime = 0
   def totalTime = 0
   showButton("Start - 60 second test")
   startTime = getTime()
   waitWithGauge(60)
   endTime = getTime()
   totalTime = endTime - startTime
   show(totalTime)
   showButton("Okay")
}


FYI, I tried the same with a
Code:
wait(60)
and it returned 60 each time.

Re: Problem with waitWithGauge

SomeGuy22006 [ Mon Jan 25, 2021 11:18 am ]

I was curious about this issue.

I ran your test code, modified to repeatedly try times between 5 to 100 seconds and doing it multiple times.

I found they always came back too long.

It was quite consistent for multiple tries, usually within a second on each attempt.

It is not a constant offset so not caused by overheads in initialising the code.

I found it took 19-23% longer than asked for. Doesn't get noticeably better or worse for longer/shorter times.

Re: Problem with waitWithGauge

doti [ Mon Jan 25, 2021 12:40 pm ]

Interesting. Some overhead was expected, but not so much (on my main platform, 0.1%). A better algorithm can be included in the next release.
On which system do you get so much time ?

Re: Problem with waitWithGauge

ispank [ Tue Jan 26, 2021 5:50 am ]

I'm running Win10 Home. I'm seeing 16 - 20% on my system.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011