Huge performance hit using background(PImage)
in
Core Library Questions
•
1 year ago
So I have a game project I've been working on in Processing, and for some reason I started getting terrible framerates (around 20 fps). I had assumed that it was just some slopping ways I was doing draw calls, but it turns out it was the background(PImage) function. Is this an issue that other people have with this? or is it just me?
For those interested, it's MUCH better to just use a screen-aligned image draw call instead. To do this, reset your camera, and use: image(img, 0, 0, width, height); before you draw your scene.
For those interested, it's MUCH better to just use a screen-aligned image draw call instead. To do this, reset your camera, and use: image(img, 0, 0, width, height); before you draw your scene.