Rviz slows down publisher when subscribed to /map topic?
Ubuntu 20.04 ROS2 Foxy C++
Why would Rviz slow down the program running /map publisher when subscribed to the topic?
The following error pops up. The map is displayed but getting updated agonizingly slow.
~$ rviz2 rviz2
[INFO] [1649261852.934675573] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1649261852.934911179] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
[INFO] [1649261853.023261324] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1649262370.083874343] [rviz2]: Trying to create a map of size 400 x 200 using 1 swatches
[ERROR] [1649262370.087614431] [rviz2]: Vertex Program:rviz/glsl120/indexed_8bit_image.vert Fragment Program:rviz/glsl120/indexed_8bit_image.frag GLSL link result :
active samplers with a different type refer to the same texture image unit
Update:
Bandwidth of the /map publisher drops from 600KB/s to 50KB/s
Frequency drops from 7Hz to 0.4Hz.
BTW it's not only Rviz, with plotjuggler program I see the same slowdown.