* Nick Pelling
> As a game-writing veteran, I've tried doing some simple animation using
> DynAPI: however, the frame-rate seemed limited to about 20Hz - I
> couldn't get it any smoother than that on my mid-range PC. That was
> moving a single small layer on a screen with about 37 layers, which is
> about normal range for simple games.
>
> Is this determined by the complexity of the overall structure, or is
> there some other limiting factor inherent in the libraries, or in the
> browsers?
the limitation comes from, IIRC, the interrupt timer in Windows
(95/98, I haven't tested Me yet) which runs at just around 18Hz. so
when you have a single setInterval() thread to time movement you won't
get speeds in exceed of 18fps. Windows NT/2k, Macs and Linux/Xfree
doesn't have this limitation.
you might want to have a look at <URL:
http://www.webreference.com/dhtml/column28/ >
I'm currently working on a followup article to this one (after all
it's been 18 months since I wrote it) where I'll give insights and
code for an improved timer solution I wrote about a year ago.
multithreading has for me given better results. I'll need to clean
the code a bit before the public can have a look at it though.
Morten!
--
"...a liquid which was almost, but not quite, entirely unlike tea."
My opinions are not necessarily those of my provider,
not necessarily mine, and probably not necessary.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help