XWidgetSoft Forum
https://www.bbs.xwidget.com/

Custom animations and timer/drawing update speed
https://www.bbs.xwidget.com/viewtopic.php?f=3&t=5219
Page 1 of 1

Author:  Skarn [ November 9th, 2014, 12:59 am ]
Post subject:  Custom animations and timer/drawing update speed

Hi Tony,
Sorry to only be here for a few moments and already making suggestions.

1. At best, single layer/image widget, 32x32 with a timer on 10ms to move widget to mouse cursor, there is a slight delay to ability of the widget to keep up with mouse. Same results using a fullscreen widget and moving the layer around within to the mouse cursor.

Any thoughts on ways to improve the update/drawing speed?

2. The 3D animations - any way to add to them via script? Or add to the current list? I don't mean things like movement, I mean things like the 3D rotates and manipulations. I am comfortable with learning how to send complex math commands to the engine to customize an animation.

Thanks :-)

Author:  digigamer [ November 17th, 2014, 6:35 am ]
Post subject:  Re: Custom animations and timer/drawing update speed

Javascript does have it's limitations. It's an interpreted language anyway (see Wiki)
it takes a few milliseconds to read,parse and execute javascript. Windows script host is not as smart as ionmonkey in firefox to do JIT.
To avoid the catch up issue, try not to move things relative to mouse hotspot. Keep the position something like mousex -10 mousey - 10

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/