I'm attempting to create a very large image in Java like so:
BufferedImage bi = new BufferedImage(58240, 1664, BufferedImage.TYPE_INT_RGB);
obviously the image is very large.
Now the issue I'm having is that it seems to work fine 100% on some computers but really slowly on others (and no this has NOTHING to do with specs).
My most major breakthrough came in Eclipse, the IDE refused to actually display the image and instead threw an error on one of the computers which displays the image really slowly (takes a considerable amount of time to resize the image and the like):
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Another interesting element of the error is that even on the computers it runs slowly on I can resize the window it's in until the paint function is no longer being called, then make it large again and if I do it 'right' it runs with 100% of speed.
Not sure what's going on at all, any ideas?