Thread: [Engine] Pokemon Java Kit
View Single Post
Old October 25th, 2012 (6:58 PM).
Dying Light's Avatar
Dying Light Dying Light is offline
Pegasus Knight
Join Date: Jun 2011
Location: Exiled
Gender: Male
Nature: Hardy
Posts: 368
Originally Posted by DaSpirit View Post
I don't use Java, but I know about OpenGL. If this happens then it is because of your OpenGL implementation does not use hardware acceleration. Most beginners use the fixed pipeline which is bad and old but everyone's computer supports. A good OpenGL implementation (but which older computers do not support) relies on shaders (generally versions 3.x and up). Shaders are done on the GPU rather the CPU which makes it a whole lot faster and less CPU intensive like which you are seeing.

Under research, I found that the default Java 2D library uses hardware accelerations based on what is supported. The code probably makes it so that it chooses whichever highest OpenGL version you support and uses it. Your implementation probably only uses a single version.
This is actually very true. For example, when I ran Minecraft on a brand new PC it had OpenGL errors because hardware acceleration wasn't allowing the main GPU to allocate shaders to the lighting system.

“Our only limits are the ones we place on ourselves.”
Reply With Quote