Use requestAnimationFrame instead of setImmediate
Use requestAnimationFrame instead of setImmediate

It limits the amount of update per frame and seems to fix
the error raised when finding markers.
It also seems to fix a lot of weird behaviour when decorations are
added to the minimap.

atom-minimap/minimap,xndcn/atom-minimap