On Tuesday, June 4, 2019 at 11:32:42 AM UTC+8, evdubs wrote:
>
> Thanks for trying it out.
>
> I just tried using the bash installer from 
> https://download.racket-lang.org/ and I experience the same issue of 
> lagginess in 7.3. I also tried using a snapshot release from 
> https://plt.eecs.northwestern.edu/snapshots/ and I experienced the same 
> issue. 
>
> I am not sure what I should try next other than maybe profiling, but I 
> have not had much luck making effective use of the profiler in the past for 
> interactive applications.
>

Here are a few things you can try:

First, check again whether there’s a performance drop in Racket 7.2 too -- 
you
don’t want to spend time tracking down a Racket problem only to find out 
that
the latest Ubuntu update disabled the hardware acceleration on the graphics
card.

If it is indeed a regression in Racket 7.3, you can try narrowing the 
problem
down to either rendering or mouse event delays:

* you can measure the time it takes to render the plot by measuring the time
  the paint method of the `editor-canvas%`. You will need to create a custom
  `editor-canvas%` and override `on-paint` and use
  `current-inexact-milliseconds` to measure the time.

* to check if mouse events are delivered too late to the callback. You can 
use
  the `get-time-stamp` method on the event and compare it against
  `current-inexact-milliseconds` to determine the delay.

You will need to compare both values against Racket 7.2 to see which one is
causing the slow down.

Alex.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/e0eb4b36-d37b-4688-bb02-6d3c645f37cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to