# Large image displaying decreases frameRate

**URL:** <https://discourse.processing.org/t/large-image-displaying-decreases-framerate/6539>\
**Category:** Processing\
**Created:** [December 12, 2018, 1:02pm UTC](https://discourse.processing.org/t/large-image-displaying-decreases-framerate/6539 "2018-12-12T13:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sarah/32/1675_2.png) [@Sarah](https://discourse.processing.org/u/Sarah)\
**Post date:** [December 12, 2018, 1:02pm UTC](https://discourse.processing.org/t/large-image-displaying-decreases-framerate/6539/1 "2018-12-12T13:02:20Z")

</div>

Hi,

When I’ve been using Processing I usually don’t work with images, so I decided to experiment a bit. However, when I started to move the image the program started to get really slow (10 fps).

The image size is 2100 x 2100 and displayed to scale. Interestingly, when I the render to `P2D` I got 20x better FPS than the default renderer, which seems like a lot even though `P2D` usually does render faster.

Is there a way I can boost the program’s performance while still using the Processing renderer?

Thanks!

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 16, 2018, 11:53pm UTC](https://discourse.processing.org/t/large-image-displaying-decreases-framerate/6539/2 "2018-12-16T23:53:11Z")

</div>

> [@Sarah](#):
>
> The image size is 2100 x 2100 and displayed to scale.

Could you share something about how, specifically, you are doing this? Are you using `scale()`, or PImage.resize() – are you udoing teh scaling with a buffer PImage / PGraphics, etc.

This could matter a lot for performance.
