What is the fastest way to put bloom on a BufferedImage?

43 views Asked by At

So I make games in Java, and a big part of that is rendering. Recently, I've been getting into post-processing and I wanted to add bloom to my frame. I found a library that adds bloom to an image, but as it turns out, it's very slow. Before bloom, it's around 40-50 fps (I don't have the best pc, and haven't figured out multithreading yet), but after bloom, it drops to 15 fps. Is there a library that adds bloom to an image faster? Is there a faster way in general? Should I just bite the bullet and learn multithreading? For context, I'm drawing my frame on a BufferedImage and then drawing that to a JPanel.

No Bloom: No Bloom: 40 fps

Bloom: Bloom: 12 fps

0

There are 0 answers