Slow Display Update on Matrixctrl
Hello,!
I am using a matrixctrl to display data from Cellular Automata but as the patch has got more cpu intensive it has started to skip and isnt displaying whats happening with the CA.
I'm guessing jitter is probably more appropriate.. Is there any way to transfer the matrixctrl data into a jit.window? Is this possible with more than 1 cell state (I have 5 at the moment with different coloured cell images).
I am completely ignorant when it comes to jitter!
How often are you updating the [matrixctrl]? You might want to look at [jit.conway] for help on CA in jitter, it will get you started at least.
the speed varies, its runs fine at very fast rates (
the jit.conway example file looks like it could be helpful tho, just need to try and understand jitter a bit better
can you just bypass the matrixctrl and go straight to a jit.matrix? this would update tons faster. of course if you need the UI capabilities of matrixctrl this wouldn't be as useful. Or, you could have both, then use the UI part once in awhile, hide it otherwise. You can bang matrixctrl and get all the cell values, should be able to populate the jit.matrix in a snap.
Here's jit.conway running a matrixctrl, but I don't think its a very efficient thing to do:
another way, with just jit.iter/pack/message box. didn't realize you could do it like this...benchmark testing could be interesting to compare rates? checking fps with matrixctrl hidden/visible changes a lot when you try metro 10.
Ha, much simpler and more efficient I daresay! I did make that ages ago in my defence ;)
ah thanks for that, the matrixctrl I'm having problems with is purley for displaying the CA, I have a seperate one for the input which is proccessed by a CA object I made (I ended up coding my own instead of using the jit.conway so I could have a bit more control).
I see that you have used a coll to enter the "live" co-ordinates, so I guess I can use this method for the CA data, just need to figure out how to have multiple states of single cells represented in the window also (with different colours), jit.fill looks promising, not sure if thats really using it for what its actually for though!
For colours you can send the live coordinates to either the red, green or blue plane or a combination to make other colours. Example for you:
thats great thanks!
Hi everyone!
Great patch.
One question, I´m trying to get data position (for a solid object), out of this matrixctrl (attached to the conway function).
How can I get the data from the matrixctrl? I can make it manually, but not when is displayed by the conway object:
Thank you