soegaard / sketching

A Racket library for creative drawings and animations. Inspired by Processing.
110 stars 10 forks source link

Default frame rate of 10 feels slow #83

Open ericcervin opened 2 years ago

ericcervin commented 2 years ago

When I first started running loops in sketching, the performance felt sluggish and I wondered if there was a bug. Once I checked the documentation, I learned that 10 was the intended default, and I started using set-frame-rate! in my sketches. Would it be worthwhile to have a higher default? Maybe it might improve the experience for other new and naive users.

#lang sketching
(define (setup)
  (size 480 120)
  (smoothing 'smoothed)
  (background 200)

  (fill 0 102)
  (no-stroke)
  )

(define (draw)
  (ellipse mouse-x mouse-y 9 9) 
)
ericcervin commented 2 years ago

image

ericcervin commented 2 years ago

image