I’m making a minecraftlike 2D game that uses tiles, world generation, alot of other fun stuff.
Got a ‘demo’ of my game to work. Generates a png using Perlin Noise and it reads off the pixels for the basic map(I will need to change that later as a simple png won’t be able to hold the whole map I need later). Also uses basic entities and player functions such as a inventory and world interaction.
Anyway, I am having some serious performance problems pop up. Now, I’ve been ALL of my 2D processing/drawing by using what Java already has. No extra libraries at all.
I have roughly 10 layers of image processing my game has to go though. Particles, entities, player, world, second world layer, UI, UI second layer. You get the idea.
Someone told me that I should use lwjgl or something simular, because the way I have coded it makes it so the CPU does pretty much all of the work drawing everything, which is harsh. And lwjgl or something that uses OpenGL uses the video card to do that processing and would run faster.
So, mind you, I am ALL self-taught. So, sorry for the stupid question, or if I even got the details wrong but;
Is this true? If so, where can I look into how to use lwjgl or something simular in a 2D game?
Everything I find comes up with 3D, either my google-fu needs some work, or lwjgl is strictly for 3D.
I’m not exactly sure where to look because I have no experience using libraries.
Thanks for your time!