Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


edited May 2013 in Questions Posts: 5

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?



  • edited May 2013 Posts: 580

    @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.

  • Posts: 5

    Kk here is the code

    function setup()
    x = WIDTH/2
    y = HEIGHT/2
    c = color(0, 0, 0, 255)


    function draw()


    function touched(touch)
    x = touch.x
    y = touch.y
    c = color(204, 194, 175, 255)

  • Jmv38Jmv38 Mod
    Posts: 3,297

    Try to replace smooth() by: noSmooth() noStroke()
    You'll see an improvement

  • Posts: 5

    I dont see any changes by doing that. But thank you

  • dave1707dave1707 Mod
    Posts: 8,496

    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
  • Posts: 5

    Wow that worked. No flickering lol. Thank you

Sign In or Register to comment.