Strange delay sometimes

Hi,

maybe someone of you had a similar behavior.
Everything renders fine, but sometimes i get a strange delay… (when you move around you know what i mean)

As information, i use VBO/BAO and generate them only once.
Will post specific parts of the Code, or just decompile the Jar ^^

Hope anyone had the same troubles and found a solution.

Regards
Hestalon

I would recommend posting segments of your code, I don’t particularly want to download anything because it’s inconvenient. It sounds like your frame rate is fluctuating quite a bit, hence the choppy movement. Do you have a game loop to keep the frame rate in check?

Game.jar doesn’t open for me.


Exception in thread “main” java.lang.NoClassDefFoundError: org/lwjgl/opengl/Pixe
lFormat
at venom.force.core.BasicRenderer.CreateWindow(BasicRenderer.java:120)
at venom.force.core.BasicRenderer.Start(BasicRenderer.java:61)
at Application.main(Application.java:12)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.opengl.PixelFormat
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 3 more

@trollwarrior1 did you extract the lib-folder too ?
@opiop65 => http://pastebin.java-gaming.org/0715c922a8f (maybe these parts help)
Before i changed the gameloop to a fixed timestep i had the same behavior.

It seems this call is sometimes choppy

GL11.glDrawElements(GL11.GL_LINES, indicesCount, GL11.GL_UNSIGNED_INT, 0);

Regards

Change that UNSIGNED_INT to UNSIGNED_BYTE, I believe. I can’t think of why you should right now, but I think I always use byte. I may be wrong though.

Hm,
so maximum Indicessize will be 256.
Right now i use, if a Chunk (16x16x16) is complete filled, around 9000 indices. I know there is much potential for improvements.

I changed everything to byte but still the same behavior :frowning: