process() method.
process().FINISH.NORMAL |
Normal operation, data was processed. |
NOOP |
Nothing to process, wait for next frame. |
FINISH |
Done processing, go to close(). |
NOOP if nothing was done
(usually waiting for piped data).
NOOP tells NeXtMidas to pause before
calling process() again.
setPollTime(..) method or via the /POLL= switch.process() from "spinning" and
using up a lot of CPU while waiting.| X-Midas Users Take Note: |
|---|
The process method is called many times. This is because NeXtMidas
abstracts most of the process loop away from the individual primitive. By abstracting
most of the process loop, the primitive can run in many modes (piped, not piped, run from
X-Midas, run by a processing engine, etc.) without alteration.
|
| Don't Make This Mistake: |
|---|
One of the most common mistakes is returning NORMAL from process()
when nothing has been done. This will cause the process loop to spin and use up all of the
CPU time.
|