Re: [racket-users] Re: Typing lag with DrRacket on Linux

2020-05-28 Thread evdubs
I suppose that may be helpful, but this performance issue extends to any other Racket GUI application on Linux, including the simple editor example from earlier in this thread. Maybe printing something to a console could help, but it would be better if there was some fix to improve fractional

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2020-05-28 Thread Jens Axel Søgaard
Slack users confirm the problem when the backing scale is 1.5. Should DrRacket give a warning dialog on Linux, when started with a non-integer backing scale? /Jens Axel Den ons. 13. maj 2020 kl. 05.48 skrev evdubs : > I did some more digging and found locations in racket/draw that control >

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2020-05-12 Thread evdubs
I did some more digging and found locations in racket/draw that control antialiasing. I tried changing them around, and saw no impact on performance. However, I eventually stumbled upon the environment variable PLT_DISPLAY_BACKING_SCALE. By using an integer value for this variable,

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2020-05-11 Thread evdubs
I think what I have seen previously with setting the canvas style to 'transparent ultimately is turning off antialiasing in Cairo. Using the sample text editor from this thread, I ran the following: $ cairo-trace racket text-editor.rkt $ cairo-trace racket text-editor-transparent.rkt In the

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2019-03-29 Thread Bryan Lee
I’m facing the same issues, and I came across an interesting observation. It seems that DrRacket mimics scrolling behaviour by literally replacing each line of code with the line above or below, and uses a really inefficient method of tracking which lines should go where, thereby limiting how

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-11-01 Thread evdubs
*Resurrecting an old thread.* I recently tried to see what would happen if I changed the interactions-canvas% and definitions-canvas% to be the following: (define interactions-canvas% (class editor-canvas% (init [style '(transparent)]) (super-new (style (cons 'auto-hscroll

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-22 Thread evdubs
My apologies for the continued spam, but it feels like I am close to having buttery-smooth text editing in DrRacket on large resolution windows. I just need some help :) When I set the interactions-canvas% and definitions-canvas% in unit.rkt to have the 'transparent style (after hacking the

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-21 Thread evdubs
I played around with is a bit more and noticed that setting editor-canvas%'s style to (list 'transparent) greatly increases the performance of the simple editor to where it performs just like any other text editor. However, I tried applying this to DrRacket in drracket/drracket/private/app.rkt

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-11 Thread evdubs
I created PR 95 to remove the call to gdk_window_process_all_updates. I am still unsure if there are legacy or compatibility reasons for having this call. Evan On Saturday, February 10, 2018 at 12:39:58 PM UTC-10, evdubs wrote: > > I made the following

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-10 Thread evdubs
I made the following change to window.rkt 's flush-display (define (flush-display) (try-to-sync-refresh) ;; (gdk_window_process_all_updates) (gdk_display_flush (gdk_display_get_default))) I made this

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-10 Thread evdubs
I had to add a sampler to that code so what I really had was this: #lang racket/gui (require profile) (require profile/analyzer) (require profile/render-text) (require profile/sampler) (define s (create-sampler (current-thread) 0.0)) (s 'get-snapshots) (define ec% (class editor-canvas%

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-10 Thread Robby Findler
If you run this code, does the profiling information reveal anything interesting? #lang racket/gui (require profile) (define ec% (class editor-canvas% (define/override (on-paint) (profile (super on-paint))) (define/override (on-char e) (profile (super on-char e)))

[racket-users] Re: Typing lag with DrRacket on Linux

2018-02-09 Thread Evan Whitmer
I forgot to mention that I have a 4K display, and I think that's important to note here. On Friday, February 9, 2018 at 7:00:18 PM UTC-10, Evan Whitmer wrote: > > I, too, am having typing latency issues in DrRacket in the definitions > window. As Dave noted, the size of the window seems to be

[racket-users] Re: Typing lag with DrRacket on Linux

2018-02-09 Thread Evan Whitmer
I, too, am having typing latency issues in DrRacket in the definitions window. As Dave noted, the size of the window seems to be related to the issue, and, in my experience, it's not just an issue with the Definitions window. Both the Interactions window and even the following code snippet

[racket-users] Re: Typing lag with DrRacket on Linux

2017-04-01 Thread George Neuner
On Fri, 31 Mar 2017 13:34:38 -0700 (PDT), Dave Musicant wrote: >I'm using DrRacket on a 64-bit Ubuntu 16.04 system with the >default Unity windowing system, and am finding that typing >in the definitions window is laggy. I've seen similar behavior on CentOS 6.5-6.8 under