> To unsubscribe from this group and stop receiving emails from it, send an email to racket...@googlegroups.com.
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.
(define/override (on-paint)
(define begin-timestamp (current-inexact-milliseconds))
(super on-paint)
(define end-timestamp (current-inexact-milliseconds))
(set! paint-event-stats
(update-statistics paint-event-stats (- end-timestamp begin-timestamp))))
(define ((make-current-value-renderer fn) snip event x y)
(define delta (- (current-inexact-milliseconds) (send event get-time-stamp)))
(set! mouse-event-stats (update-statistics mouse-event-stats delta))
(define overlays
(and x y (eq? (send event get-event-type) 'motion)
(list (vrule x #:style 'long-dash)
(point-label (vector x (fn x)) #:anchor 'auto))))
(send snip set-overlay-renderers overlays))
I ran the program with your modifications, but counter to the documentation, the values I get from get-time-stamp don't seem at all similar to current-milliseconds or current-inexact-milliseconds. I ended up defining delta as follows (with 1559695139340 being a guess):(define delta (- (current-inexact-milliseconds) 1559695139340 (send event get-time-stamp)))
Alex.
The paint times for 7.2 seem inconsistent with your previous tests...
Version | Min | Max | Mean | StdDev |
7.2; delta < 2 | 0 | 22 | 3.398 | 3.968 |
7.3; delta < 2 | 0 | 210 | 4.795 | 18.214 |
7.2; delta < 20 | 0 | 22 | 2.332 | 3.64 |
7.3; delta < 20 | 0 | 206 | 9.728 | 19.46 |
7.2; delta < 200 | 0 | 106 | 2.961 | 7.802 |
7.3; delta < 200 | 0 | 239 | 29.579 | 34.369 |