# Why is Android Mode for Processing 4 so laggy compared to Android Mode for Processing 3?

**URL:** <https://discourse.processing.org/t/why-is-android-mode-for-processing-4-so-laggy-compared-to-android-mode-for-processing-3/48241>\
**Category:** Processing for Android\
**Created:** [March 19, 2026, 9:09pm UTC](https://discourse.processing.org/t/why-is-android-mode-for-processing-4-so-laggy-compared-to-android-mode-for-processing-3/48241 "2026-03-19T21:09:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aiapps](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/aiapps/32/21731_2.png) [@aiapps](https://discourse.processing.org/u/aiapps)\
**Post date:** [March 19, 2026, 9:09pm UTC](https://discourse.processing.org/t/why-is-android-mode-for-processing-4-so-laggy-compared-to-android-mode-for-processing-3/48241/1 "2026-03-19T21:09:09Z")

</div>

I noticed that the code written for the new version lags significantly more, regardless of the render type.

What causes this behavior?

To reproduce this situation, it is enough to set the line thickness to 2 and try to draw at least 200 lines on the screen simultaneously using the rotate() method (pushMatrix(), translate(), popMatrix()).

Another example

```processing

// In draw()

background(232);

pushMatrix();

translate(width / 2, height / 2);

for (float i = 0; i < TWO_PI; i += TWO_PI / 200) {

rotate(i + (frameCount * .00001f));

line(0, 0, width / 2, height / 2);

}

popMatrix();

println((int) frameRate);

```
