i worked out a working shader. patch below and shader attached.
i didn’t get the speed improvement i was hoping for though, only a couple of fps more. looks like reading and writing to/from the GPU/VRAM is slowing things down most, plus the rendering of the 640×480 mesh. using char instead of float32 gains a couple of fps but not much.
does anyone have ideas for other strategies? for example, is there a way to render the mesh directly on the GPU without reading back to a matrix first?
in this thread a technical possibility is mentioned but it wasn’t implemented 4 years ago. is it now? http://cycling74.com/forums/topic.php?id=3435
– Pasted Max Patch, click to expand. –
Copy all of the following text.Then, in Max, select New From Clipboard.
Feb 4, 2011 at 4:18pm #191551