# Sketch is running at low framerate (3fps) i don't know why

**URL:** https://discourse.processing.org/t/sketch-is-running-at-low-framerate-3fps-i-dont-know-why/26607
**Category:** Coding Questions
**Tags:** homework
**Created:** [December 30, 2020, 3:33am UTC](https://discourse.processing.org/t/sketch-is-running-at-low-framerate-3fps-i-dont-know-why/26607 "2020-12-30T03:33:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [December 30, 2020, 3:50am UTC](https://discourse.processing.org/t/sketch-is-running-at-low-framerate-3fps-i-dont-know-why/26607/2 "2020-12-30T03:50:44Z")

</div>

Hello,

Load the image in setup():

```auto

PImage img;

void setup() 
  {
  size(800, 800); 
  img = loadImage("picture.jpg");  
  img.resize(width,height);
  }

void draw() 
  {
  //background(img);
  image(img, 0, 0, width, height);
  }

```

`:)`

---

_[View the full topic](https://discourse.processing.org/t/sketch-is-running-at-low-framerate-3fps-i-dont-know-why/26607)._
