FLTK logo

Re: [fltk.general] Slow response when calling Fl_Text_Editor::buffer()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Slow response when calling Fl_Text_Editor::buffer() Gonzalo Garramuño 10:56 Apr 19  
 

On 19/4/24 10:43, Eric Sokolowsky wrote:

As you can see, the delay comes from the line where the editor is given the text buffer to use. Everything else is fast, as expected.

Any light that could be shed on this would be appreciated.

Just a guess here.  But WRAP_AT_BOUNDS forces your editor to re-align the text (add line-feeds) and you are using 5 columns, so if your text lines are long your text is wrapped very often.  Try WRAP_NONE and see if it improves the response.  If it does, you found the culprit.

--
Gonzalo Garramuño
ggarra13@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/7bba338c-1a96-4afe-a81e-a0ad0bc8cee5%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.