I have piece of code which reads file generated by several gps loggers, takes coordinates and draws them on screen. I don't know why, but the code is slow as hell. Time needed to draw 1 frame (which holds about 300 - 400 small ellipses) is about 6 seconds (tested on different machines).
At first I fought that the size of file (~20 MB) is the problem so I've commented out file reading part at all and inserted some sample strings but that didn't helped at all.
Tried drawing on directly on screen instead of PGraphics buffer - any positive results.
Now I'm stuck... Even the first frame (which is empty) takes 1 second to render - but this coud be true remembering all initialization going on.