leif
2020-6-20 21:09:57

Is it just me, or has Racket’s gui gotten more and more sluggish lately?


leif
2020-6-20 21:10:03

(At least on linux)


soegaard2
2020-6-20 21:11:26

I am not on Linux - but I think a Linux related thing was fixed very recently. Are you using a snapshot?


soegaard2
2020-6-20 21:13:18

@leif Was is your value of PLT_DISPLAY_BACKING_SCALE ? Set it to 1 or 2.



leif
2020-6-20 21:14:11

@soegaard2 I don’t set it.


leif
2020-6-20 21:14:18

And it doesn’t look to be set in my environment


leif
2020-6-20 21:14:30

I am on a snapshot.


leif
2020-6-20 21:14:36

I’ll update and see if that helps.


soegaard2
2020-6-20 21:15:29

@leif It seems I misremembered. The problem wasn’t fixed - just identified.


leif
2020-6-20 21:15:37

Aww…sad. :disappointed:


leif
2020-6-20 21:15:49

Its making drracket unusable for me. Sigh.


leif
2020-6-20 21:15:51

Thanks anyway.


leif
2020-6-20 21:16:01

I’ll look into fixing it.


soegaard2
2020-6-20 21:16:28

Using 1 or 2 as the value of PLT_DISPLAY_BACKING_SCALE makes a difference.


soegaard2
2020-6-20 21:16:59

1.25 or 1.5 turns out to be slow (at least on some machines)


michaelmmacleod
2020-6-20 21:20:16

There was a blog post that I saw a while ago about the reasons we switched away from using planet require forms to using raco pkg, but I can’t seem to find it. Can anyone point me to it?


soegaard2
2020-6-20 21:28:24

@michaelmmacleod Maybe it was linked to in the discussion in this group yesterday?


michaelmmacleod
2020-6-20 21:36:19

Unfortunately it wasn’t :disappointed:.



michaelmmacleod
2020-6-20 21:38:31

Yep, that’s it. Thanks!


leif
2020-6-20 22:22:39

@soegaard2 So I just checked out racket 7.5, and while its still pretty sluggish, its no where near as bad.


leif
2020-6-20 22:22:56

So while I think there’s more going on here, that certainly is a factor.


leif
2020-6-20 22:22:58

Thanks.


soegaard2
2020-6-20 22:46:29

@leif Do you use Wayland?


leif
2020-6-20 22:46:55

Nope, I use x.


soegaard2
2020-6-20 22:49:52

Reading a bit of code from the gtk layer. I noticed (define/override (make-backing-bitmap w h) (cond [(and (not is-transparentish?) (not wayland?) (eq? 'unix (system-type))) (make-object x11-bitmap% w h (send canvas get-client-gtk))] [(and (not is-transparentish?) (not wayland?) (eq? 'windows (system-type))) (make-object win32-bitmap% w h (widget-window (send canvas get-client-gtk)))] [else ;; Transparent canvas always use a Cairo bitmap: (make-object cairo-bitmap% (max 1 w) (max 1 h) (send canvas get-client-gtk))])) https://github.com/racket/gui/blob/55cc692234ae9eceac3e3a511dfc6559a40870e3/gui-lib/mred/private/wx/gtk/dc.rkt#L197


soegaard2
2020-6-20 22:51:13

Also if you don’t set the PLT backing scale explicitly it uses a setting from Gnome: (define (get-interface-scale-factor display-num) (or (get-environment-variable-scale-factor) (get-gnome-interface-scale-factor) 1.0))



mflatt
2020-6-20 22:57:46

Commits 70c318b2fd5c57d534fdb4b7f5fe3696523e6c2a and 55cc692234ae9eceac3e3a511dfc6559a40870e3 in racket/gui may be relevant. I hope not, but do you see anything different by reverting those (55cc before 70c3)?


leif
2020-6-21 00:20:19

@mflatt Reverting 55cc didn’t do anything, but reverting 70c3did.


leif
2020-6-21 00:20:46

So it might be the problem.


leif
2020-6-21 00:21:02

Ah, okay


leif
2020-6-21 00:21:10

In that case I have my scale set to 100% iirc.


leif
2020-6-21 00:25:10

Also, the date of that commit coincides around the time DrRacket started getting really painful to use.


leif
2020-6-21 00:25:34

(Which is to say a week or two later, when a next pulled.)


leif
2020-6-21 00:26:23

Would it be possible to just push reverts for those commits?


mflatt
2020-6-21 02:58:00

Yes, I think reverting is probably right. I’ll look one more time tomorrow.