Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-08 Thread Jay McCarthy
On Thu, Apr 7, 2016 at 10:58 AM, Jay McCarthy wrote: > I also just recently discovered an optimization I can make in mode-lambda > but haven't had time to implement it. If it's not adequate, I can make > sometime to do it. > BTW, I just implemented this optimization. mode-lambda now uses 6 times

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-08 Thread 'John Clements' via Racket Users
> On Apr 8, 2016, at 3:20 AM, Jay McCarthy wrote: > > On Fri, Apr 8, 2016 at 1:30 AM, John Clements > wrote: > Down side: the documentation for ‘lux’ is giving me fits. The names all seem > chosen as an elaborate pun on those used by 2htdp/uniiverse, and there are no > examples. > > There i

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-08 Thread Jay McCarthy
On Fri, Apr 8, 2016 at 1:30 AM, John Clements wrote: > Down side: the documentation for ‘lux’ is giving me fits. The names all > seem chosen as an elaborate pun on those used by 2htdp/uniiverse, and there > are no examples. > There is an entire directory called `examples` and the aforementioned

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-07 Thread 'John Clements' via Racket Users
> On Apr 7, 2016, at 7:58 AM, Jay McCarthy wrote: > > mode-lambda is intended for this kind of work load. Try taking the demo, > going to the "rand" workload (line 140) and change in the in-range for W to > something like (* 10 W) (which would be 2.5k) and evaluating the performance. > I also

Re: [racket-users] 2d animations with 2k+ polygons?

2016-04-07 Thread Jay McCarthy
mode-lambda is intended for this kind of work load. Try taking the demo, going to the "rand" workload (line 140) and change in the in-range for W to something like (* 10 W) (which would be 2.5k) and evaluating the performance. I also just recently discovered an optimization I can make in mode-lambd

[racket-users] 2d animations with 2k+ polygons?

2016-04-06 Thread 'John Clements' via Racket Users
I’m trying to create a simple fixed animation with about 2k polygons moving on a simple background. Not surprisingly, things start to slow down pretty badly once I’m animating 2k polygons at a time, even when every one of these polygons is (freeze (rectangle 5 5 ‘solid ‘blue)). My question is th