Are you repeatedly generating image for an animation inside an event loop?
Depending on the kind of program `freeze` from 2htdp/image may help if you
haven't tried already. For example this program renders faster with
freeze both in RacketScript and 2htdp/image.
On Tue, Apr 25, 2017 at 9:09 PM, Daniel Prager <daniel.a.pra...@gmail.com>
> Much as I enjoy making images using 2htdp/image it does get a tad slow as
> complexity increases.
> I currently have a program in which I generate images in 2htdp/image and
> translate them into bitmap%s per racket/gui and render on canvas%'s via a
> Speed has become sluggish and I'm going to need to move away from
> 2htdp/image to address this.
> A typical image is built up out of lots of above, beside, overlay, square,
> and triangle calls.
> Does anyone have a "clever" way to do this programatically (rather than a
> manual re-write with lots of absolute calculations replacing heights and
> Many thanks
> 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.
> For more options, visit https://groups.google.com/d/optout.
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
For more options, visit https://groups.google.com/d/optout.