We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, In my other post I have asked about the program performance and its dependencies. I wrote a screen test program (displaying a lot of points on the program) for testing the frameRate change depending on the number of points displayed on the screen. I have noticed that when I used P3D/P2D/OPENGL render in size then frameRate increases significantly.
My Question are:
Answers
Function frameRate() only stipulates how much to w8 between draw() calls.
If draw() finishes within the FPS set, Processing delays next call to it. Otherwise, draw() is called immediately! 3:-O
Okay, I have used Datastructure in my code but still my code runs at 10-14 frame/sec. I have used P3D render. Actually the code is written for Kinect using SimpleOpenNI which uses more than 4 java collections (ArrayLists, HashMaps, list , Maps) still it is very slow.
Is there anyway to force my program to use my dedicated graphics memory like CUDA does?
Is there any special or advance rendering method which can accelerate my program ?
The question is very generic, that's why I give only generic answers... As you found out yourself, slow down can come from code or from display (or both!). If you do lot of heavy computations, it can slow down a sketch. I guess OpenNI do lot of stuff behind the scene, its algorithms are probably non-trivial!
That said, if you think the slowdown can come from your own code, you can inspect it with a tool like VisualVM, but to find out where slow operations come from can need some advanced Java knowledge (or at least some study).
Thanks PhilLho , I don't know what is VisualVM but I'll definitely look into it but I have two more questions