| 123 | |
| 124 | |
| 125 | {{{#!div class="box" |
| 126 | == Debugging == |
| 127 | When using non-video encodings, the encoding used for sending the pixels to the client will be the one which has been selected. The only exception to this rule is when the number of pixels is so small that trying to compress them would be pointless, and they are then sent as plain {{rgb}}}. |
| 128 | |
| 129 | With video encodings, things are more complicated: if there is a video region, the non video areas will use other encodings. Even the video region (which may be the whole window) will get automatically refreshed with a lossless encoding when it stops refreshing rapidly. |
| 130 | |
| 131 | To debug encoding selection: |
| 132 | * the actual encoding used is logged with {{{-d compress}}} in the form: |
| 133 | {{{ |
| 134 | make_data_packet: image=XShmImageWrapper(BGRX: 149, 2, 6, 13), damage data: (1, 149, 2, 6, 13, 'rgb24') |
| 135 | compress: 0.9ms for 499x316 pixels using mmap with ratio 0.0% ( 615KB to 0KB), delta=-1, client_options={'rgb_format': 'BGRX'} |
| 136 | }}} |
| 137 | * the current encoding set is best seen with: {{{xpra info | grep encoding=}}} |
| 138 | * to see statistics about which encodings are actually used: {{{xpra info | egrep "last_used|total_frames|total_pixels"}}} |
| 139 | }}} |