spatialillusions / milsymbol

Military Symbols in JavaScript
www.spatialillusions.com/milsymbol
MIT License
571 stars 139 forks source link

In need of caching mechanism #296

Closed onderaltintas closed 3 months ago

onderaltintas commented 5 months ago

When the object is moving draw call happens with 33ms periods. Only direction arrow changes. That causes flickering on map. Is there a possibility of caching base icon (without modifiers) and apply changes for every draw call?

If you can point out the related location on code base, I believe I can also apply that kind of caching mechanism as well.

Thank you,

hasan4938 commented 5 months ago

Waht are you Doing?

spatialillusions commented 3 months ago

There is a caching mechanism, but not for this kind of use. I would suggest that you request the symbol without the direction arrow, and then draw it on your map manually behind the symbol as another map symbol.