# Experiencing lots of lag

**URL:** <https://discourse.processing.org/t/experiencing-lots-of-lag/13387>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [August 15, 2019, 12:57am UTC](https://discourse.processing.org/t/experiencing-lots-of-lag/13387 "2019-08-15T00:57:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [August 15, 2019, 1:40am UTC](https://discourse.processing.org/t/experiencing-lots-of-lag/13387/6 "2019-08-15T01:40:58Z")

</div>

> [@Using two different readStringUntil "characters"](https://discourse.processing.org/t/using-two-different-readstringuntil-characters/10769/23):
>
> Now that it seems all’s been sorted out, how about some optimization? The range [-10 to 10] is so small (5-bit) that it comfortably fits in a byte (8-bit). So, rather than send those 2 small values as TSV, w/ lotsa extra separator characters, we can simply send 2 bytes only using Serial.write(): [https://www.Arduino.cc/reference/en/language/functions/communication/serial/write/](https://www.Arduino.cc/reference/en/language/functions/communication/serial/write/) We just need to create a char array of length = 2: signed char xy[2]; #define BAUDS 115200 #define DELAY 10 #define…

---

_[View the full topic](https://discourse.processing.org/t/experiencing-lots-of-lag/13387)._
