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
less memory (CPU & GPU --- which means much less data transfer per frame)
and generates 66% few triangles on the GPU. This should increase the amount
of sprites you can push out significantly.

Jay

-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

   "Wherefore, be not weary in well-doing,
  for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
  - D&C 64:33

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


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 is an entire directory called `examples` and the aforementioned 
> mode-lambda demo program is also an example. I've added a link to help user 
> find it.
> 
> https://github.com/jeapostrophe/lux/tree/master/examples 

Excellent! Many thanks.

John Clements



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


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
mode-lambda demo program is also an example. I've added a link to help user
find it.

https://github.com/jeapostrophe/lux/tree/master/examples

Jay

-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

   "Wherefore, be not weary in well-doing,
  for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
  - D&C 64:33

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


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

Up side: 2.5k sprites seem to work fine.

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.

Still plugging,

John


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


signature.asc
Description: PGP signature


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-lambda but haven't had time to implement it. If it's not adequate, I
can make sometime to do it.

Jay

On Wed, Apr 6, 2016 at 8:27 PM, 'John Clements' via Racket Users <
racket-users@googlegroups.com> wrote:

> 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
> this: what’s the best tool for building an animation like this? Should I go
> straight to OpenGL? Jay, would your mode-lambda be good for this?
>
> John
>
>
>
> --
> 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.
>



-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

   "Wherefore, be not weary in well-doing,
  for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
  - D&C 64:33

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


[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 this: what’s the best 
tool for building an animation like this? Should I go straight to OpenGL? Jay, 
would your mode-lambda be good for this?

John



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