joulupunikki / Phoenix

Java clone/remake/patch of the game Emperor of the Fading Suns
https://joulupunikki.github.io/Phoenix/
37 stars 14 forks source link

Loading files in paintComponent() is bad #87

Closed joulupunikki closed 8 years ago

joulupunikki commented 8 years ago

If the load fails we may have a hung process which must be killed externally.

Loading files just once to buffer somewhere and using that (or copying the buffer if we need to customize the image) should save a lot of computational effort.