Drawing an image in Java, slow as hell on a netbook

Drawing an image in Java, slow as hell on a netbook

In follow-up to my previous questions (especially this one : http://stackoverflow.com/questions/2684123/java-volatileimage-slower-than-bufferedimage), i have noticed that simply drawing an Image (it doesn't matter if it's buffered or volatile, since the computer has no accelerated memory*, and tests shows it's doesn't change anything), tends to be very long.

(*) System.out.println(GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getAvailableAcceleratedMemory()); --> 0 

How long ? For a 500x400 image, about 0.04 seconds. This is only drawing the image on the backbuffer (obtained via buffer strategy).

Now considering that world of warcraft runs on that netbook (tough it is quite laggy) and that online java games seems to have no problem whatsoever, this is quite thought provoking.

I'm quite certain I didn't miss something obvious, I've searched extensively the web, but nothing will do. So do any of you java whiz have an idea of what obscure problem might be causing this (or maybe it is normal, tough I doubt it) ?

PS : As I'm writing this I realized this might be cause by my Linux installation (archlinux) tough I have the correct Intel driver. But my computer normally has "Integrated Intel Graphics Media Accelerator 950", which would mean it should have accelerated video memory somehow. Any ideas about this side of things ?

Is there a workaround for Linux mono's refusal to acknowledge that I have resized the columns of my VirtualMode ListView?


How to enable core PHP extension in Linux?
I'm also running Arch Linux and noticed my games going slow any times, especially when using alpha transparencies with my images. Programmatically insert and remove kernel modules in CIt turns out this even Windows, not only Linux any times turns off hardware acceleration by default.. Consolidate multiple site files into single location I looked for a quick fix to the problem and found this: http://web.archive.org/web/20120926022918/http://www.systemparadox.co.uk/node/29. Creating a PHP web page that enables you to reboot the server in Linux? Enabling OpenGL considerably sped up my framerates, and I assume if you ran your tests again, you'd receive faster draws.. What the best multi-thread application debugger for C++ apps
Build an Xcode project on a Linux machineHow do I pass a Python Variable to Bash?


I don't know enough around java graphics, although if I were in your shoes, I would assume this the measurement means nothing without a comparison value, which it sounds like you might have although are not sharing. Add this information to your question, along with the specs of the comparison system (is it a desktop? does it have a dedicated video card? does it run windows or linux?).. Concerning your measurement this it's 10 times faster on ananother netbook, does this another notebook run Windows, or is this one also Linux? Linux has historically had very mediocre graphics drivers - they just don't run nearly as well as the Windows equivalents. In fact for a long time the only drivers you could receive were not written by ATI/nVidia/etc., although rather by hobbyists. It would not surprise me at all if a Linux machine ran a graphical program ten times slower than a similar machine running Windows.. This was the position as I understood it around five years ago. I doubt it's changed much..

68 out of 100 based on 43 user ratings 918 reviews