Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lwjgl OpenGL Help

Name: Derp 2013-01-18 1:37

Question:
Question;
I've made my top-down minecraftlike game to a point. Dynamic/adjustable types, basic entities, player movement, a worldgen...
However.
This whole time I didn't understand that I needed to code the game to use a Video card via OpenGL and stuff, so the game lags like a whore by only using CPU power to display everything.
So, I'm looking into lwjgl(Yes, I'm using Java), and following some tutorials I understand 'kinda' how to draw basic 2D shapes using OpenGL.
However, I am stuck.
There seem to be multiple ways of displaying a graphic?
DisplayLists, and Vertex Buffers?
I have NO idea what I am doing here.
Do I somehow have the video card calculate the layers of images I am making?
Or is it 'purely' for display?
Sorry if the answer seems obvious, but although I know coding enough to do alot of stuff, this OpenGL stuff seems way over my head and I'm not exactly sure what computer logic I am trying to follow.

Name: Anonymous 2013-01-18 2:10

>>4
First of all, are you certain the slow down is coming from the graphics? If you have a profiler, use it and compare how expensive the routines are. Do they match up with what you would expect? If not, try disabling the graphics or reducing them to a point where you know it would be efficient. If the game is still slow it's coming from something else. Also just draw everything as color coded triangles at first. Or whatever works in the short term. This sort of thing is useful to have for debugging anyway.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List