Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

G4P: GTextField slow input

$
0
0

Hello! I'm having some performance issues with GTextField while using larger font size. While entering text in GTextField that goes past the edge of the field, the input dramatically slows down.

I'm experiencing this on Windows 7 64, Processing 3.1.1 and G4P 4.0.4. Do others experience this as well?

If it is general issue, I have few more observations. Curiously the field is fast when deleting characters with backspace. ControlP5 is also fast, but it doesn't have other features like copy/pasting.

Thank you!

import g4p_controls.*;
import java.awt.Font;

GTextField txf1;
int fontSize = 80;

void setup() {
  size(800, 600);

  txf1 = new GTextField(this, 100, 250, 600, 100);
  txf1.setFont(new Font("Arial", Font.PLAIN, fontSize));
}

void draw() {
  background(125);
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles