2

Does paint, or paintComponent utilize the GPU for drawing images on the screen?

I have a program that is loading images on a JPanel at 60fps, and I wonder if that is too much for a game I'm making

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Loligans
  • 497
  • 9
  • 24

1 Answers1

0

It should be. Best way to know how to proceed would be to do a test and load a bunch of fake images, and makes sure you don't drop frames. Even if you use the GPU it might not be fast enough on your device, so recommend testing regardless.

pfrank
  • 2,090
  • 1
  • 19
  • 26
  • It most definitely doesn't use the CPU, because when repainting at 1000FPS, the CPU usage doesn't go past 2-3% usage. – Loligans Sep 04 '13 at 16:13