![]() Drawing where the cursor is predicted to be in order to compensate for lag works well during smooth cursor/pen motion. Use 'pointerrawmove' to get move events as soon as they happen instead of waiting for a big bunch of coalesced moves to all arrive after a delay.Ĥ. Here's a paint app that uses techniques 1 and 2 to achieve much lower input lag drawing the pen strokes that chase the cursor:ģ. Instead of using requestAnimationFrame(), draw as soon as a move event is received. The cursor lag is really bad, particularly on Windows, but there are at least 2 ways the lag could be much lower:ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |