Im new to codea and lua with general programming knowledge. But from my understanding, codea only allows for 60fps. I got this little quick code to finger paint on the screen. But if you move to fast then it looks chopy. So is there a way around this?
@Pathanos: most hardware has a refresh rate of 60 hz, this is not a Codea limitation; 60 fps is plenty fast. Without seeing your code it’s difficult to say what’s causing the choppiness.
Kk here is the code
function setup()
displayMode(FULLSCREEN)
x = WIDTH/2
y = HEIGHT/2
c = color(0, 0, 0, 255)
end
function draw()
smooth()
fill(c)
ellipse(x,y,75)
end
function touched(touch)
x = touch.x
y = touch.y
c = color(204, 194, 175, 255)
end
Try to replace smooth() by: noSmooth() noStroke()
You’ll see an improvement
I dont see any changes by doing that. But thank you
Try this.
function setup()
displayMode(FULLSCREEN)
background(40,40,50)
backingMode(RETAINED)
x = WIDTH/2
y = HEIGHT/2
c = color(0, 0, 0, 255)
end
function draw()
smooth()
fill(c)
ellipse(x,y,75)
end
function touched(touch)
x = touch.x
y = touch.y
c = color(204, 194, 175, 255)
end
Wow that worked. No flickering lol. Thank you