Menu

#13 GTextField slow input

1.0
closed
None
bug
2016-07-14
2016-06-08
izumitelj
No

There are some noticable performance issues (slowness) with GTextField when using larger font size and while there is more text than fits the text field. Curiously the text field responds very fast when deleting characters with backspace.

I'm experiencing this on Windows 7 64, Processing 3.1.1 and G4P 4.0.4.

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);
}

Related

Tickets: #13

Discussion

  • Quarks Processing

    • status: open --> accepted
    • assigned_to: Quarks Processing
     
  • Quarks Processing

    The text scrolling does not keep the text insertion point visible on screen when typing is very fast and can be very slow in catching up. This also applies when blocks of thext are pasted in.

     
  • Quarks Processing

    • status: accepted --> closed
     
  • Quarks Processing

    This problem has been fixed with V4.0.5

     
  • izumitelj

    izumitelj - 2016-07-14

    Hi quark! Did you test the bug with Home/End that I've reported on the forum?
    I think it's better not to push the fix if that bug is not fixed as well. It might introduce errors in previously working programs. Best regards!

     
    • Quarks Processing

      Yes the NaN bug is fixed as well.

      Peter

      On 14/07/2016 15:09, izumitelj wrote:

      Hi quark! Did you test the bug with Home/End that I've reported on the
      forum?
      I think it's better not to push the fix if that bug is not fixed as
      well. It might introduce errors in previously working programs. Best
      regards!


      [tickets:#13] https://sourceforge.net/p/g4p/tickets/13/ GTextField
      slow input

      Status: closed
      Milestone: 1.0
      Created: Wed Jun 08, 2016 06:14 AM UTC by izumitelj
      Last Updated: Thu Jul 14, 2016 02:01 PM UTC
      Owner: Quarks Processing

      There are some noticable performance issues (slowness) with GTextField
      when using larger font size and while there is more text than fits the
      text field. Curiously the text field responds very fast when deleting
      characters with backspace.

      I'm experiencing this on Windows 7 64, Processing 3.1.1 and G4P 4.0.4.

      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);
      }


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/g4p/tickets/13/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #13


Log in to post a comment.

MongoDB Logo MongoDB