This definitely seems worth experimenting with. big-bang does (can,
really) create bitmaps itself. It gets 2htdp/image images from the
user's program and then it can create a bitmap to draw them into
directly, if it wants to. It may already be creating a bitmap
explicitly, I'm not sure.

Robby


On Mon, May 11, 2015 at 12:43 AM, Jens Axel Søgaard
<jensa...@soegaard.net> wrote:
> 2015-05-11 2:24 GMT+02:00 Robby Findler <ro...@eecs.northwestern.edu>:
>>
>> But if you have a specific destination in mind you can make the bitmap
>> first and then draw the 2htdp/image into it (or anything into it!)
>
>
> When I use my own game-loop it is easy enough to use the make-bitmap method
> of the canvas.
>
> I did see a significant improvement in responsiveness, so I thought maybe
> the same trick could be used in the implementation of big-bang. It's
> tricky though since the user produces the bitmaps, not the big-bang loop
> itself.
>
> FWIW: On OS X the difference between the two methods is so large the game
> went from unplayable to playable (due to a single call to draw-bitmap).
> I saw times between 7-9 milliseconds for the call.
>
> /Jens Axel
>

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

Reply via email to