window.setTimeout not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

if you check out www.whitedragons.org/test.php, you'll see a deck of cards.
The shuffle method is set to cut the deck in two, render the two piles and
then riffle it back together.
The timeout paramater is set to 1 but it's taking about 12 seconds to run
through it once.
 
I realise that.
It should be shuffling quickly but is, instead, taking 12 seconds. It should
take far less than a second to do it.
 
Hi Reagun,

It must be your coding then. For sprite animation, each tick displays a
frame of the animation, so maybe also you need to reduce the timeout value
instead. I am not sure if the client processing speed effects the animation
speed, but intuitively I would guess yes it does.

Regards.
 
Back
Top