Re: [racket-users] Time for draw-bitmap

2015-05-11 Thread Robby Findler
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

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Jens Axel Søgaard
2015-05-11 0:56 GMT+02:00 Matthew Flatt mfl...@cs.utah.edu: At Mon, 11 May 2015 00:30:05 +0200, Jens Axel Søgaard wrote: 2015-05-11 0:07 GMT+02:00 Matthew Flatt mfl...@cs.utah.edu: If you're on OS X, try creating the bitmap with (send canvas make-bitmap screen-width screen-height)

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Jens Axel Søgaard
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

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Robby Findler
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!) Robby On Sunday, May 10, 2015, Matthew Flatt mfl...@cs.utah.edu wrote: At Mon, 11 May 2015 00:30:05 +0200, Jens Axel Søgaard wrote: 2015-05-11 0:07

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Matthew Flatt
If you're on OS X, try creating the bitmap with (send canvas make-bitmap screen-width screen-height) instead of (make-object bitmap% screen-width screen-height) Roughly, using the `make-bitmap` method creates a bitmap that's on the graphics card instead of main memory. At Sun, 10 May 2015

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Jens Axel Søgaard
Worked like a charm. Thanks! 2015-05-11 0:07 GMT+02:00 Matthew Flatt mfl...@cs.utah.edu: If you're on OS X, try creating the bitmap with (send canvas make-bitmap screen-width screen-height) instead of (make-object bitmap% screen-width screen-height) Roughly, using the `make-bitmap`

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Jens Axel Søgaard
2015-05-11 0:07 GMT+02:00 Matthew Flatt mfl...@cs.utah.edu: If you're on OS X, try creating the bitmap with (send canvas make-bitmap screen-width screen-height) instead of (make-object bitmap% screen-width screen-height) Roughly, using the `make-bitmap` method creates a bitmap that's

Re: [racket-users] Time for draw-bitmap

2015-05-10 Thread Matthew Flatt
At Mon, 11 May 2015 00:30:05 +0200, Jens Axel Søgaard wrote: 2015-05-11 0:07 GMT+02:00 Matthew Flatt mfl...@cs.utah.edu: If you're on OS X, try creating the bitmap with (send canvas make-bitmap screen-width screen-height) instead of (make-object bitmap% screen-width