Forums > Jitter

Matrix operations are slow

May 29 2009 | 11:58 am

I have performed following matrix operation to scroll an image

for (int i=0;i

I found the operation to be very slow. I have seen jitter examples doing far complex operations running very fast. Is there a way to speed things up?
What I wanted to do is to change pixel values. I have seen "op" operation performed on matrix.
Can anyone give a small sample code on this?

May 29 2009 | 2:18 pm

jit.op, jit.rota, jit.xfade, dim/srcdim/dstdim messages…

Is there a reason you need to do these things using code? Most matrix operations you can do with jitter objects, and a lot of them could be a pain to do otherwise. If you have really code-specific questions, those forums will probably be better.

May 29 2009 | 2:36 pm

I have written my application as a java external. So I have to do it in code.
I tried to use jit.op but couldn’t figure out how to do it in code. What I really wanted to do is to create water ripple effect. I am not sure jit.op is the correct way of doing something like this…

May 30 2009 | 9:45 pm

iterating over a matrix like that in JAVA is going to be slow-ish. Definitely slower than in C, which is what all of the Jitter externals are written in. If you want a water ripple effect, have a look at xray.jit.water:


Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter