Mantissa,
Sorry my code was not clear.
Not in the draw() but I was trying to call draw() in a for loop in the keyPressed event.
void testApp::keyPressed(int key) {
switch (key) {
case ' ':
for(int i=0 i < 100; i++){
if(i % 10 == 0)
someUpdateFunction();
draw();
}
break;
}
}