2

I'm new to cesium, when i use this software, i always get warning in Chrome's console: Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: I guess there could be some setting to switch it on, but don't know how.

Anybody can help, thanks!

Thanks & Regards, Martin.

ipk app
  • 53
  • 1
  • 4

1 Answers1

1

I'm also facing the same issue and found the solution given below on Stack Overflow:

const ctx = canvas.getContext('2d', {willReadFrequently: true});

But it needs to change directly into cesium.js which is not possible from the developers end.

user16217248
  • 3,119
  • 19
  • 19
  • 37
Shashi
  • 11
  • 1
  • 2
  • that's really a pity, seems this is only about label or can happen on other type of graphics, btw, seems the program is very "power consuming" on mobile, not sure is it due to this "Canvas2D: Multiple readback operations" or overall cesium is such power consuming? – ipk app Oct 11 '22 at 01:31
  • But I'm working on the desktop rather than facing issues. – Shashi Oct 11 '22 at 06:54
  • on desktop power is not a concern – ipk app Oct 14 '22 at 13:42