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

2022-02-22 Thread evdubs
I can confirm that using a non-integer PLT_DISPLAY_BACKING_SCALE value for DrRacket 8.4 does not cause performance issues seen in earlier releases. Anyone coming to this thread with Linux DrRacket performance issues should make sure they are on version 8.4 or higher. Evan On Thursday, October

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

2021-10-28 Thread evdubs
Resurrecting this old thread. This issue should now be resolved with this commit: https://github.com/racket/gui/commit/20e589c091998b0121505e25c7ff2f95e8116dcb No need to use PLT_DISPLAY_BACKING_SCALE with this fix. Evan On Thursday, May 28, 2020 at 4:18:44 AM UTC-10 evdubs wrote: > I

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